https://github.com/sonsongithub/testfoldr
foldr implementaion in Swift
https://github.com/sonsongithub/testfoldr
Last synced: about 2 months ago
JSON representation
foldr implementaion in Swift
- Host: GitHub
- URL: https://github.com/sonsongithub/testfoldr
- Owner: sonsongithub
- License: mit
- Created: 2015-08-18T08:15:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T23:57:50.000Z (over 9 years ago)
- Last Synced: 2025-02-03T14:47:14.468Z (4 months ago)
- Language: Swift
- Size: 531 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testFoldr
foldr implementaion in Swift#### Performance test of implemention of ```foldr``` in Swift 2.0
Compared with
1. Recursive
2. ```reverse``` + ```for```
3. lazy ```reverse``` + ```for```
4. ```reverse``` + ```forEach```
5. lazy ```reverse``` + ```forEach```
6. ```reverse``` + ```reduce```
7. lazy ```reverse``` + ```reduce```
![]()