An open API service indexing awesome lists of open source software.

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

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```