Commit graph

22 commits

Author SHA1 Message Date
bcb4dd1e9d
docs: add documentation for new collection functions
Add comprehensive documentation for all new functions:
- TakeWhile: take elements while predicate is true
- DropWhile: drop elements while predicate is true
- Scan: running accumulator (prefix scan)
- First/FirstN: get first element(s) safely
- Init: all but last element
- Intersperse: insert separator between elements
- Sliding: sliding window views
- FoldRight: right-to-left fold/reduce
- Tap: side effects without mutation
- Transpose: flip matrix rows/columns
- Unzip: split tuples into separate slices
- ParallelReduce: parallel reduction (experimental)
- Replicate: create n copies of a value

Each doc includes:
- Clear description
- Code examples with output
- Common use cases
- Edge case handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 08:48:38 +01:00
9cf61ec6c5
feat: add ParallelFilter and UniqueInPlace functions
Add `ParallelFilter` for concurrent filtering with context and error
support.
Add `UniqueInPlace` to remove duplicates from slices in place. Update
README
and add documentation and tests for both functions.
2025-09-01 18:16:59 -04:00
1031038d42
feat: add Chunk, ContainsBy, UniqueBy, ParallelMap, map helpers
- Add `Chunk` to split slices into groups of size n.
- Add `ContainsBy` for predicate-based containment checks.
- Add `UniqueBy` to deduplicate slices by key selector.
- Add `ParallelMap` for concurrent mapping with context and error
handling.
- Add `maps.Keys` and `maps.Values` helpers for extracting map
keys/values.
- Update README and docs for new features.
- Refactor `Contains` to use `slices.Contains`.
2025-09-01 18:03:38 -04:00
fbf58eff42
Refresh documentation (#39)
* minor documentation fixes

* fix Hugo warnings

* add openssf badge
2024-12-03 09:29:53 +01:00
eda818c6e0
format docs 2024-09-08 19:11:52 +02:00
054679fb18 add group by to docs 2023-06-07 14:49:55 +02:00
Ruidy
4042208482
add flatmap (#31)
* add flatmap

Signed-off-by: Ruidy <ruidy.nemausat@gmail.com>

* add to readme

Signed-off-by: Ruidy <ruidy.nemausat@gmail.com>

Signed-off-by: Ruidy <ruidy.nemausat@gmail.com>
Co-authored-by: Ruidy <ruidy.nemausat@gmail.com>
2022-08-10 17:01:43 +02:00
Ruidy
7fef1562f2
unique function (#27)
Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-04-12 23:32:13 +02:00
Ruidy
f6af583408
Pipe (#26)
* rename to pipe

* add security scan

* use var in Makefile
2022-03-31 17:37:02 +02:00
Ruidy
1166c701ac
add intersection (#25)
Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-27 06:34:09 +02:00
Ruidy
6a1a4c157b update docs 2022-03-25 11:00:09 -04:00
Ruidy
d9c1c152ba
update docs (#24)
Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-25 10:39:45 -04:00
Ruidy
6b377350d6
U 21 diff (#23)
* add logo and fix project image description

* add difference function

* update docs

Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-24 17:30:01 +01:00
Ruidy
eebeb65114
add logo and fix project image description (#22)
Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-24 17:03:10 +01:00
Ruidy
235b36b7f6 add documentation link 2022-03-23 10:58:44 -04:00
Ruidy
d19fa7b8c9
docsite (#19)
* change documentation theme and structure

* add config files

* fix links

* add build doc command

Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-23 10:32:56 -04:00
Ruidy
fb517f3b04
last function (#17)
* last function

* fix CI

Co-authored-by: Ruidy <rnemausat@newstore.com>
2022-03-21 18:04:30 +01:00
Ruidy
81c98e8bf5 refactor: rename Some to Any 2022-01-03 11:20:36 -04:00
Ruidy
7460ba86a8 refactor: rename Every to All 2022-01-03 11:16:01 -04:00
Ruidy
2798562b46
Enable Chaining (#6)
* feat: chain filter map reduce simple Type

* docs: chain documentation

Co-authored-by: Ruidy <rnemausat@newstore.com>
2021-12-31 18:21:00 +01:00
Ruidy
97e0a6e7e7
Doc site (#5)
* docs: install compose theme

* docs: create collections page

* docs: create collections page

* docs: change logo

Co-authored-by: Ruidy <rnemausat@newstore.com>
2021-12-31 15:37:31 +01:00
Ruidy
6ffe22b4df docs: add badges 2021-12-30 11:34:01 -04:00