codesnippets:folds
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| codesnippets:folds [2021/04/08 17:51] โ [Keeping order and beeing fast?] f2b216 | codesnippets:folds [2025/10/08 00:48] (current) โ external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 347: | Line 347: | ||
| -50000000 | -50000000 | ||
| </ | </ | ||
| - | * executes | + | * executes |
| * executes using large heap space | * executes using large heap space | ||
| * {{: | * {{: | ||
| - | * example, using foldl and reverse:< | + | * example, using '' |
| import qualified Data.List as L | import qualified Data.List as L | ||
| Line 375: | Line 375: | ||
| -50000000 | -50000000 | ||
| </ | </ | ||
| - | * executes | + | * executes |
| * executes using large heap space | * executes using large heap space | ||
| * {{: | * {{: | ||
| + | * regardless of whether '' | ||
| + | * regardless of whether alternative '' | ||
| + | * e.g.:< | ||
| + | reverse' | ||
| + | reverse' | ||
| + | where | ||
| + | reverse'' | ||
| + | reverse'' | ||
| + | reverse'' | ||
| + | </ | ||
| + | * or<code Haskell> | ||
| + | reverse' | ||
| + | reverse' | ||
| + | </ | ||
| + | * or<code Haskell> | ||
| + | reverse' | ||
| + | reverse' | ||
| + | </ | ||
| ====== Conclusion and selection ====== | ====== Conclusion and selection ====== | ||
| Line 388: | Line 406: | ||
| * if the initial value is the first and the last respectively use '' | * if the initial value is the first and the last respectively use '' | ||
| + | |||
| + | ===== โ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/folds.1617897090.txt.gz ยท Last modified: (external edit)
