残念
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
dudaodong
8229de2f10
test: add parallel running for all unit test functions
2023-06-30 10:18:45 +08:00
dudaodong
b1c6614549
refactor: clean code
2023-06-01 16:58:42 +08:00
dudaodong
f93c561f5d
doc: update go playground demo
2023-04-27 12:03:15 +08:00
dudaodong
4311b9ac66
test: remove t.Log()
2023-04-26 14:59:45 +08:00
dudaodong
01a3b139c0
doc: add document for new functions in slice and strutil package
2023-04-18 15:49:09 +08:00
dudaodong
fcb3b97b45
doc: add docment and playground demo for v2.1.19
2023-04-18 15:21:03 +08:00
dudaodong
52ea64bc33
feat: add FindLastBy function
2023-04-17 20:17:26 +08:00
燕归来
14bc08c6d6
feat: add FindBy that a result will be without unrefrence #88 ( #90 )
...
feat: add example for FindBy
chore: reduce code duplication
2023-04-17 20:11:56 +08:00
dudaodong
c01c9d14b4
feat: add ReduceRight
2023-04-04 17:54:54 +08:00
dudaodong
f198191063
feat: add ReduceBy
2023-04-04 17:41:37 +08:00
Mickls
3b497532f3
fix: The LastIndexOf method can never return the index of the first element ( #83 )
...
Co-authored-by: JiangCheng <jiangcheng@kezaihui.com >
2023-03-28 20:02:57 +08:00