https://github.com/zot/seq
functional concurrent and sequential sequences for Go
https://github.com/zot/seq
Last synced: 12 months ago
JSON representation
functional concurrent and sequential sequences for Go
- Host: GitHub
- URL: https://github.com/zot/seq
- Owner: zot
- License: bsd-3-clause
- Created: 2010-11-10T09:33:16.000Z (over 15 years ago)
- Default Branch: release
- Last Pushed: 2010-11-14T08:07:41.000Z (over 15 years ago)
- Last Synced: 2025-03-23T03:32:11.773Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 144 KB
- Stars: 45
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SEQ
===
The seq package provides functional sequences with the Seq interface. Seq provides two concrete implementations: SequentialSeq and ConcurrentSeq. SequentialSeq is like vector, and ConcurrentSeq is like a vector that calculates its elements in the background, which can be used for lazy sequences or for some types of parallel computation.
If you want to enumerate the elements of a Sequence, you can use one of the Sequence methods or you can just call it in the range clause of a for-loop, like this:
Do(seq, func(el El){
...
})
The functionality is mainly accessible through functions, rather than methods, although there is partial method support. The methods are mainly there to support the functions. Please see the documentation for more information.