1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00
Commit Graph

198 Commits

Author SHA1 Message Date
dudaodong 47e82aad39 refactor: refact some sliceutil functions 2025-04-24 10:38:43 +08:00
dudaodong 9e813d236b fix: fix issue #159 2025-04-22 14:46:03 +08:00
dudaodong 6dfdadd34e doc: update for release v2.3.5 2025-03-07 14:19:07 +08:00
dudaodong df8121fbbd Merge branch 'rc' into v2 2025-02-14 17:13:11 +08:00
dudaodong 0e7297cb97 feat: add ShuffleCopy 2025-02-14 16:33:22 +08:00
dudaodong 2e619e48a3 feat: add ReverseCopy 2025-02-14 16:23:46 +08:00
残念 3069acba4a Merge pull request #293 from YoghurtFree/fix_slice_test
fix(slice_test) , should not assume the order of the slice
2025-02-09 23:10:28 +08:00
jialulu fc43138a0e fix: fix slice_test.go ,We should not assume the order of the slice when using multithreads,sort them before compare 2025-02-09 22:23:35 +08:00
dudaodong ab89f0aee1 feat: add EqualUnordered 2024-12-19 19:36:17 +08:00
dudaodong ecafed511c doc: add play ground demo for v2.3.4 2024-12-04 14:25:51 +08:00
dudaodong 8f3ea60636 refactoring: reimplement the logic of Intersection 2024-11-29 15:47:08 +08:00
残念 a7fecfc73b perf(slice): make the IndexOf function thread-safe (#263) 2024-11-06 10:04:44 +08:00
dudaodong a4e89bd7c1 feat: add ConcatBy 2024-10-24 15:38:12 +08:00
dudaodong 2015d36b08 feat: add JoinFunc 2024-10-24 14:56:13 +08:00
燕归来 1008dd4956 fix: fix compile error (#255) (#258) 2024-10-18 15:09:28 +08:00
dudaodong 213e2b4ead doc: add play ground demo 2024-10-09 16:56:56 +08:00
dudaodong c3372e18b1 feat: add Frequency in slice package 2024-09-06 15:06:35 +08:00
dudaodong ec092a009a test: we should write clean unit test code 2024-08-28 16:06:08 +08:00
dudaodong c0b200f846 feat: add ReduceConcurrent 2024-08-15 17:48:26 +08:00
dudaodong 305847993c feat: add ForEachConcurrent 2024-08-15 16:44:22 +08:00
dudaodong f5d70728c3 refactoring: rename param and change its order 2024-08-15 15:50:48 +08:00
dudaodong a360372aa9 feat: add FilterConcurrent 2024-08-14 11:19:10 +08:00
dudaodong 7f78a6b11e refactoring: rename slice_parallel to slice_concurrent 2024-08-14 10:52:36 +08:00
dudaodong 5c53cb5867 feat: add MapConcurrent 2024-08-14 10:45:35 +08:00
dudaodong 8611ec0c10 feat: add UniqueByComparator 2024-08-08 11:23:11 +08:00
dudaodong 286e10d189 refactoring: memory optimization for unique slice 2024-08-08 10:51:33 +08:00
dudaodong 3e7f94b03e fix: fix UniqueBy bug 2024-08-08 10:40:23 +08:00
dudaodong 356351896d feat: add UniqueByParallel for slice 2024-08-08 10:20:52 +08:00
dudaodong 4af074d181 doc: add play ground demo 2024-07-18 11:34:16 +08:00
dudaodong 95b516e278 feat: add UniqueByField 2024-06-24 19:36:02 +08:00
残念 ce2397422e perf(slice): make a clearer panic description (#223) 2024-05-30 16:55:30 +08:00
dudaodong 6e0498514c doc: update doc for v2.3.1 2024-05-14 11:25:01 +08:00
Yang Li 53fa210f09 refactor slice.Unique() (#215) 2024-05-09 10:43:59 +08:00
Cannian 6853d627f4 refactor(slice): optimize function (#211) 2024-04-06 09:16:28 +08:00
donutloop ab50e8120a Slice: padding (#201)
* LeftPadding adds padding to the left begin of a slice.
* RightPadding adds padding to the right end of a slice.
2024-03-10 21:24:17 +08:00
donutloop 5e8a065eaa Slice: break (#200)
Splits a slice into two based on a predicate function. It starts appending to the second slice after the first element that matches the predicate. All elements after the first match are included in the second slice, regardless of whether they match the predicate or not.
2024-03-07 14:11:19 +08:00
dudaodong a6eaaef563 doc: add go playground demo 2024-03-06 15:28:55 +08:00
dudaodong 5ca8f6ef6f doc: update doc 2024-03-05 10:45:40 +08:00
donutloop 0e1593c67b Slice: Add SetToDefaultIf (#187)
SetToDefaultIf sets elements to their zero value if they match the given predicate.
It retains the positions of the elements in the slice.
It returns slice of T and the count of modified slice items
2024-02-28 11:27:23 +08:00
dudaodong fa298b740d add playground demo 2024-02-01 10:41:09 +08:00
dudaodong d2d1e5a055 feat: refact DeleteAt and add DeleteRange function 2024-01-22 15:34:35 +08:00
dudaodong ac2ecceaec refactor: refact reduce function 2024-01-03 10:46:28 +08:00
dudaodong 96320069f4 doc: update for release v2.2.8 2023-12-11 15:30:33 +08:00
o98k 3802c715c3 [feature]<slice>: support random item (#146)
Signed-off-by: o98k-ok <hggend@gmail.com>
2023-11-22 16:51:37 +08:00
dudaodong b698fec50f doc: add go playground demo 2023-09-11 15:59:35 +08:00
dudaodong 541e6d4ea3 feat: add Partition for slice 2023-09-04 11:30:50 +08:00
dudaodong 4037b96cc4 refactor: update SortByField 2023-09-04 11:03:22 +08:00
dudaodong bb563724c7 doc: add go playground demo 2023-08-01 11:01:57 +08:00
dudaodong 0d0848ac67 refactor: use for loop than for range 2023-07-10 10:56:53 +08:00
dudaodong d5334f892f feat: add Join 2023-07-10 10:51:43 +08:00