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

92 Commits

Author SHA1 Message Date
dudaodong 105ab49763 refactor: change slice Contain logic, convert to map first, then check existence 2022-07-22 10:22:34 +08:00
dudaodong 44370aef5e refactor: change variable name to 2022-07-18 15:52:51 +08:00
dudaodong 1782b11ec4 refactor: refact Intersection function 2022-07-18 15:33:45 +08:00
dudaodong 82f7401368 feat: add Flatten function 2022-07-14 11:53:16 +08:00
tangqiu0205 56b6844a2d update: update type constraint any -> Comparable. (#37)
* update: update type constraint any -> Comparable.

* update: update type constraint any -> Comparable.

Co-authored-by: zhanghu <305835360@qq.com>
2022-07-07 16:31:48 +08:00
tangqiu0205 bab0a27e40 Add ToPointer,ToSlicePointer,ToSlice func (#36)
* Add ToPointer func

* Add ToSlice and ToSlicePointer func

Co-authored-by: zhanghu <305835360@qq.com>
2022-07-05 19:15:54 +08:00
dudaodong 9f45e68fef test: add fuzz test for Equal function 2022-06-21 14:17:33 +08:00
dudaodong d2df99a6f0 feat: add UniqueBy function in slice.go 2022-06-17 15:18:04 +08:00
dudaodong d21c101caf refactor: change function name EqualWithFunc to EqualWith 2022-06-15 15:25:44 +08:00
dudaodong ef2d8e14b0 feat: add EqualWithFunc function for slice 2022-06-13 14:15:32 +08:00
dudaodong 0cbb3dd97e feat: add Equal function for slice 2022-06-13 14:06:20 +08:00
dudaodong bc9bacaa55 refactor: change param to item 2022-05-21 16:50:57 +08:00
dudaodong 2f504ce851 test: add unit test for func LastIndexOf 2022-05-16 11:11:40 +08:00
dudaodong 02a24b461c test: add unit test for func LastIndexOf 2022-05-16 11:05:52 +08:00
dudaodong 3f7a81c005 test: add unit test for func IndexOf 2022-05-16 11:04:40 +08:00
dudaodong cc6e10ee5a add func IndexOf and LastIndexOf 2022-05-16 10:40:33 +08:00
dudaodong 3c16d50c4b refactor: rename ReverseIntersect to SymmetricDifference 2022-04-01 18:05:02 +08:00
dudaodong 79867e8a63 feat: add ReverseIntersect function 2022-03-31 19:42:27 +08:00
dudaodong 50ef63e27d feat: add GroupWith func 2022-03-21 15:29:10 +08:00
dudaodong 50c6e51393 upgrade go module v2 2022-03-17 10:57:35 +08:00
dudaodong c939b26cb8 refactor: interface{} -> any 2022-03-16 18:41:40 +08:00
dudaodong 1dfd1ec1d3 Merge branch 'main' into v2 2022-02-19 21:55:09 +08:00
dudaodong b48155c249 refactor: rename files *_util.go to *_internal.go 2022-02-19 21:52:10 +08:00
dudaodong 41685022c0 refactor: rename files *_util.go to *_internal.go 2022-02-19 21:51:58 +08:00
dudaodong 5e318a78d2 refactor: remove unused code 2022-02-15 11:19:07 +08:00
dudaodong c2257493a8 fix: fix panic info text 2022-02-14 15:36:44 +08:00
dudaodong 5ae746a1f0 rename: rename InsertByIndex -> InsertAt, UpdateByIndex -> UpdateAt, DeleteByIndex -> DeleteAt for release 2.0 2022-02-10 11:25:34 +08:00
dudaodong 70077a6010 merge main branch 2022-01-26 17:47:57 +08:00
dudaodong efdf36a817 Merge branch 'main' into v2 2022-01-26 17:44:46 +08:00
dudaodong 5937183af0 feat: replace constraints comparable into any in some funcs 2022-01-24 15:47:47 +08:00
dudaodong 5899921054 fix: fix some text 2022-01-24 15:30:22 +08:00
dudaodong ec19014578 feat: add FindLast func 2022-01-24 15:29:14 +08:00
dudaodong 1ad990ce9d feat: add FindLast func 2022-01-24 15:28:47 +08:00
dudaodong 4eaa0a39d5 feat: add FindLast func 2022-01-24 15:22:43 +08:00
dudaodong 18ec73839b feat: add DifferenceWith 2022-01-24 14:53:45 +08:00
dudaodong 89aef977a2 refactor: clean code for slice/slice.go 2022-01-24 11:46:09 +08:00
dudaodong 2612569500 merge: merge main branch and refector slice func with generics 2022-01-24 11:10:12 +08:00
dudaodong 6f035f710e feat: add DifferenceBy func 2022-01-23 14:27:37 +08:00
dudaodong 92967e0add fix: TestCompact for blank string case 2022-01-22 21:21:12 +08:00
dudaodong 6a1a0b8677 feat: add Concat func 2022-01-22 21:16:34 +08:00
dudaodong 0efe2f57c3 merge main 2022-01-19 20:47:47 +08:00
dudaodong 28317a1683 feat: remove ConvertSlice func 2022-01-19 20:41:46 +08:00
dudaodong 6f1feb96d6 experimental feature, algorithm/sorter.go try to implements sort function with go generics 2022-01-14 17:01:44 +08:00
dudaodong d46d12f949 feat: add func ContainSubSlice 2022-01-13 11:52:21 +08:00
dudaodong e31fb28003 feat: add func ContainSubSlice 2022-01-13 11:00:27 +08:00
dudaodong 22798fd750 fix: fix some go report issue 2022-01-12 10:01:48 +08:00
dudaodong 907df56f86 update: make func comment consistent 2022-01-11 20:27:06 +08:00
donutloop f147f78a41 Slice: sort from v2 branch (#22)
ref: https://github.com/duke-git/lancet/commit/f1d7154179a4d94472bee9703097d78e6c37e9a7
2022-01-11 20:13:25 +08:00
dudaodong 3dadfa234b update: make func comment consistent 2022-01-11 19:33:15 +08:00
donutloop f1d7154179 refactor: sort (#21)
Removed reverse func because it use to much cpu and add test cas for asc sort
2022-01-11 19:24:36 +08:00