Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdungs/cpp-list
CoW functional list in C++11.
https://github.com/kdungs/cpp-list
experiment
Last synced: 8 days ago
JSON representation
CoW functional list in C++11.
- Host: GitHub
- URL: https://github.com/kdungs/cpp-list
- Owner: kdungs
- License: mit
- Created: 2015-02-16T14:03:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T13:59:47.000Z (almost 9 years ago)
- Last Synced: 2023-03-24T18:56:05.818Z (over 1 year ago)
- Topics: experiment
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp-list
CoW functional list in C++11.## Functionality
Functionality loosely follows all the nice stuff you find in Haskell ([Prelude](http://hackage.haskell.org/package/base-4.7.0.2/docs/Prelude.html)). Here's a list of functions that have been implemented so far. If the name is different in Haskell, it is given in italic.* Constructing lists
* `cons` _(:)_
* `makeList` _[...]_
* `append` _does not exist in Haskell in this form..._
* List operations
* `map`
* `join` _(++)_
* `filter`
* `head`
* `last`
* `tail`
* `init`
* `null`
* `length`
* `at` _(!!)_
* `reverse` (implemented in terms of `foldl` therefore found at the end of the code)
* Reducing lists (folds)
* `foldl`
* `foldl1`
* `foldr`
* `foldr1`
* Special folds
* `concat`
* `concatMap`
* Zipping and unzipping lists
* `zip`
* `zip3`
* `zipWith`
* `zipWith3`
* `unzip`
* `unzip3`
* Other
* `apply` _does not exist in Haskell..._## To Do
* Implement more functionality
* Write actual (unit) tests
* More documentation
* Performance?!## Contact
If you have any questions or suggestions feel free to write an issue report. You can also send me an email to kevin at my domain.