Commit Graph

29 Commits

Author SHA1 Message Date
Samuel Berthe
4a03b54ea4 rename ChunkMap to ChunkEntries 2025-01-26 19:38:33 +01:00
Samuel Berthe
cd0bc21b88 preallocate stuff and more tests 2024-08-11 18:47:56 +02:00
shivam-bhalla
d8e5707487 Keys+Values: accept multiple maps (vaargs) - Adding UniqKeys+UniqValues (#503)
* added Keys: accept multiple maps (vaargs)

* added test:review comment fix

* added sort before asserting :review comment fix

* added sort before asserting :review comment fix

* output unique keys

* added map functions"

* added map_test.go and README.md

* added anchor in README.md

* added breakline in README.md

* fix README.md

* fix README.md and added test

* fix comments

* fix comments

* fix comments

* fix comments

* fix comments

* Update README.md

* small typo

* Update README.md

* Update README.md

* Update map.go

* Update map_test.go

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-07-29 05:37:41 +02:00
Patryk Małek
57c2d6d4ea perf: preallocate in Assign (#484) 2024-06-30 14:40:46 +02:00
Samuel Berthe
3ba93a16cc feat: preserve type alias of slices and maps (see #365) 2024-06-30 00:04:08 +02:00
Samuel Berthe
33853f5d82 feat: adding HasKey (#477)
* feat: adding HasKey
2024-06-28 21:53:35 +02:00
Eric Leblanc
9f99f74053 Use map indexing to speed up PickByKeys and OmitByKeys (#447) 2024-06-26 12:31:24 +02:00
Samuel Berthe
f3826f79fd lint 2023-03-20 15:06:23 +01:00
Alexandre Lamarre
fd5561abb3 feat : adding ValueOr (#295) 2023-02-20 02:47:59 +01:00
VictorAssunc
640e00c286 chore: test coverage improvement (#240)
* chore: improves channel functions test coverage

* chore: improves errors functions test coverage

* chore: improves map functions test coverage

* chore: improves parallel slice functions test coverage

* chore: improves slice functions test coverage

* fix: uses atomic counter on parallel/slice_test

* Update channel_test.go

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2022-10-22 19:05:07 +02:00
Samuel Berthe
aca846b80d doc: improve doc for lo.MapEntries 2022-10-10 21:41:39 +02:00
Hugo
a28cc0b583 feat: Add MapEntries function (#216)
* feat: add MapEntries method

* fix: add out key type

* doc: add MapEntries doc

* test: change MapEntries test format

* fix: simplify MapEntries iteratee

* doc: fix MapEntries doc

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2022-10-10 21:33:49 +02:00
Samuel Berthe
31f3bc3a85 test: parallel tests everywhere (#228) 2022-10-02 21:38:26 +02:00
Samuel Berthe
bccfe8cda9 BREAKING: swap argument of MapToSlice iteratee 2022-07-29 11:49:01 +02:00
sleagon
f2175ff5c2 feat: add MapToSlice method (#157)
Change-Id: I97d3e58ddc36e65231e5e76dc9239aa52a4a7613
2022-07-24 22:04:55 +02:00
lu4p
305f565368 remove unnecessary explicit typeparams (#134) 2022-05-11 13:10:36 +02:00
Samuel Berthe
fa3e0d03d9 feat: adding PickBy+PickByValues+OmitBy+OmitByKeys+OmitByValues 2022-04-14 20:27:59 +02:00
Samuel Berthe
c97ec3bdf3 Merge pull request #62 from metalrex100/feature/add-values-filtered-helper
[Feature]: Added ValuesF helper
2022-04-14 20:18:04 +02:00
Anatoly Ibragimov
29a0704762 Changed PickByKeys helper logic to return same map type instead of slice 2022-04-14 11:29:06 +02:00
Anatoly Ibragimov
0ed7583ceb ValuesF helper renamed to PickByKeys 2022-04-13 21:44:04 +02:00
Samuel Berthe
cf11153875 feat: adding Clamp 2022-04-12 21:58:28 +02:00
Samuel Berthe
ea93273806 feat: adding MapKeys 2022-04-12 21:33:56 +02:00
Samuel Berthe
4a2c77a829 feat: adding Invert 2022-04-12 21:26:25 +02:00
Anatoly Ibragimov
279689f73f Added ValuesF helper 2022-03-22 17:02:11 +03:00
Yusuke Yajima
dc04f2d1fd Add MapValues 2022-03-08 14:46:51 +09:00
francisco souza
770dff269b Fix flaky test 2022-03-05 18:26:37 -05:00
Samuel Berthe
98ecdea940 adding Sample+Samples 2022-03-05 23:13:18 +01:00
retornam
f51ff12ef3 use EqualValues for map tests
maps are unorderd thus using EqualValues which
asserts that two objects are equal or
convertable to the same types and equal, is a
better option than Equal.
2022-03-04 15:11:02 -08:00
Samuel Berthe
74b7c77702 Initial commit 2022-03-02 13:52:01 +01:00