Commit Graph

87 Commits

Author SHA1 Message Date
Nonua
1493eadd47 feat: add Slice (#171)
feat: add `Slice`
2022-07-03 19:07:41 +02:00
lu4p
305f565368 remove unnecessary explicit typeparams (#134) 2022-05-11 13:10:36 +02:00
Samuel Berthe
e0853ca970 feat: Add FromAnySlice (#133)
* feat: adding FromAnySlice helper
2022-05-10 15:43:34 +02:00
Adam Szaraniec
fda38bb721 rename to toAnySlice 2022-05-10 16:49:21 +04:00
Adam Szaraniec
a9556597dc Add function ToInterfaceSlice which return slice with all elements mapped to any type 2022-05-10 14:33:47 +04:00
Samuel Berthe
94d54a8f47 feat: adding runelength 2022-05-01 00:22:36 +02:00
Samuel Berthe
d22a2a264d feat: adding Replace and ReplaceAll 2022-04-30 23:23:09 +02:00
Samuel Berthe
2552cd5e0d feat: adding RepeatBy 2022-04-30 21:18:08 +02:00
Samuel Berthe
ee50be0e93 move drop functions 2022-04-19 00:33:50 +02:00
Samuel Berthe
b527d40e23 Merge branch 'master' into master 2022-04-12 01:17:01 +02:00
Samuel Berthe
356f3bdb11 Merge branch 'master' into master 2022-04-11 20:43:10 +02:00
Samuel Berthe
be023ef06e Merge pull request #87 from xiaosongfu/fix-func-comment
fix func comment warning
2022-04-11 20:32:15 +02:00
Samuel Berthe
acc3953123 💄 2022-04-11 20:30:34 +02:00
Samuel Berthe
3df5ddb66e Merge pull request #88 from xiaosongfu/feat-filtermap
feat: add FilterMap
2022-04-11 20:23:44 +02:00
Samuel Berthe
74f4bf7ffd 💄 2022-04-11 20:16:47 +02:00
xiaosongfu
6ca94a9dcc feat: add FilterMap 2022-04-08 20:07:00 +08:00
xiaosongfu
0c64f2c093 fix func comment warning 2022-04-08 19:19:57 +08:00
Sergey Dobrodey
1f98b30a4b slice.go: GroupBy
reduce number of reads
2022-03-25 17:31:15 +02:00
CorentinClabaut
c2038bd296 Add Group/GroupBy implementation 2022-03-23 09:00:56 +01:00
hyunchul jung
21e6fd98f7 simplify code 2022-03-21 14:45:18 +09:00
Samuel Berthe
10e138a096 merge 2022-03-20 02:00:08 +01:00
Samuel Berthe
6f2bdeb7a2 Merge branch 'master' into master 2022-03-20 01:56:08 +01:00
Thet Naing Tun
af456e1cb7 rename ToMap to KeyBy 2022-03-12 20:23:11 +06:30
nisingh
17cfa9e69e Add Reject implementation 2022-03-12 02:36:24 +05:30
Samuel Berthe
6acbd95b44 Merge pull request #18 from quantumsheep/patch-1
Improve `Map[T any, R any]` speed
2022-03-08 12:46:06 +01:00
Yusuke Yajima
4785574798 Add FlatMap 2022-03-08 13:17:03 +09:00
Nathanael Demacon
0ce5602ac1 Improve Map[T any, R any] speed 2022-03-07 10:20:25 +01:00
Samuel Berthe
74d4363ffc Merge pull request #11 from HirbodBehnam/master
Use struct{} for sets
2022-03-05 23:16:58 +01:00
Samuel Berthe
98ecdea940 adding Sample+Samples 2022-03-05 23:13:18 +01:00
Samuel Berthe
2d3ea84ba6 feat: adding attempt + repeat + times 2022-03-05 21:24:37 +01:00
HirbodBehnam
1def922659 Use struct{} for sets 2022-03-05 22:00:44 +03:30
Samuel Berthe
0c3545daf3 feat: adding lo.PartitionBy + lop.PartitionBy + lo.GroupBy 2022-03-05 18:44:39 +01:00
Samuel Berthe
a233d0efe3 💄 2022-03-05 01:28:53 +01:00
retornam
a117131e75 Use rand.Shuffle for Shuffle
The default Shuffle from rand implements
Fisher-Yates Shuffle algorithm[1] which is
better than naive shuffling.

[1] https://en.wikipedia.org/wiki/Fisher–Yates_shuffle
2022-03-04 15:13:21 -08:00
Samuel Berthe
60559e145a adding index arguments to Map, ForEach and Reduce 2022-03-03 14:07:25 +01:00
Bluskript
d1c9c5f04b make Filter have a second argument for index 2022-03-03 07:29:16 -05:00
Samuel Berthe
74b7c77702 Initial commit 2022-03-02 13:52:01 +01:00