Skip to content
Open
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
b5a9fee
Create FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 23, 2025
51908a9
Add CE mimic as alternative
Happypig375 Jul 23, 2025
306730b
Note on if and match
Happypig375 Jul 24, 2025
6270ca5
try is also a branch
Happypig375 Jul 24, 2025
ab5f3ad
Unresolved question
Happypig375 Jul 24, 2025
fba40d0
Clarification with explicit yields inside
Happypig375 Jul 26, 2025
c134bc3
Discussion
Happypig375 Jul 26, 2025
9d2c807
Fix list separator
Happypig375 Jul 26, 2025
ae529e3
Clarify try-finally is not applicable
Happypig375 Jul 26, 2025
ebc16a0
A more complicated example
Happypig375 Jul 26, 2025
24c7d66
Summary of motivation
Happypig375 Jul 26, 2025
e473383
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 26, 2025
73a6783
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 26, 2025
f94c703
Clarify
Happypig375 Jul 26, 2025
a521829
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 26, 2025
173289e
Collect all alternatives
Happypig375 Jul 27, 2025
d528d7a
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 27, 2025
8cf10fe
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 27, 2025
1d9e9a5
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 27, 2025
2a058c4
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 27, 2025
0032822
Update FS-1152-For-loop-with-accumulation.md
Happypig375 Jul 27, 2025
5545443
Less alternatives
Happypig375 Jul 27, 2025
a679223
Another con of for with mutable accumulators
Happypig375 Jul 27, 2025
44c5fda
Merge point
Happypig375 Jul 27, 2025
4e86ceb
Tradeoffs in relation to alternatives
Happypig375 Jul 27, 2025
167eb1c
Typo
Happypig375 Jul 27, 2025
c6566de
More on why mutability is bad
Happypig375 Jul 28, 2025
482857c
Summary on the usefulness of the fold loop itself
Happypig375 Jul 28, 2025
1926e49
Why accumulator before enumeration?
Happypig375 Jul 28, 2025
ccd715e
Fix fold example
Happypig375 Jul 28, 2025
e80bae5
Fix fold again
Happypig375 Jul 28, 2025
f4a0fa2
Update comment
Happypig375 Jul 28, 2025
b1dc73f
A practical comparison
Happypig375 Jul 29, 2025
09adbf5
Put the practical comparison first
Happypig375 Jul 29, 2025
9d72371
Consistently use the terms enumerator and enumeration instead of iter…
Happypig375 Jul 29, 2025
2ff11f6
Remove string concat example which derails conversations
Happypig375 Jul 29, 2025
0fee563
Rename header
Happypig375 Jul 29, 2025
4093d35
Reword
Happypig375 Jul 29, 2025
b25c658
Fix top example again
Happypig375 Jul 29, 2025
979c708
Add onto why not CEs
Happypig375 Jul 29, 2025
da83f44
Note on another suggestion
Happypig375 Jul 29, 2025
b11621e
Undo weird indent
Happypig375 Jul 29, 2025
70d7b40
Stress that fold is fundamental in pure functional programming
Happypig375 Jul 30, 2025
0fdfdac
Answer syntactic choices
Happypig375 Jul 30, 2025
8448f20
Place ||> in existing sections
Happypig375 Jul 30, 2025
c7078b7
A detailed design from fold to loops
Happypig375 Jul 31, 2025
15d3624
Fix list comprehension
Happypig375 Jul 31, 2025
d8c1dad
Replace the list comprehension with an expression that actually does …
Happypig375 Jul 31, 2025
5a972ab
Rename word to char
Happypig375 Jul 31, 2025
14764cd
`with` is still preferred here
Happypig375 Aug 1, 2025
6a9c49f
Fix grammar
Happypig375 Aug 1, 2025
a1b3459
Clarifying that all foldable types should be enumerable
Happypig375 Aug 1, 2025
0035c9e
It's about the keyword not the concept
Happypig375 Aug 1, 2025
abef855
Fix typo
Happypig375 Aug 2, 2025
78d28e3
Why not abbreviate state initialization + Potential formality improve…
Happypig375 Aug 2, 2025
da5668f
Reject Alternative 2
Happypig375 Aug 10, 2025
fa1214e
Remove references to Alternative 2
Happypig375 Aug 10, 2025
ab634e6
Comparison to Lisps
Happypig375 Aug 10, 2025
0e94e47
Fix Common Lisp syntax highlighting
Happypig375 Aug 10, 2025
23a218c
Looks too similar to a regular loop?
Happypig375 Aug 15, 2025
0135550
Justifying simplification of folds
Happypig375 Aug 15, 2025
841981d
Add toArray toList toSeq usage
Happypig375 Aug 15, 2025
20ab212
Fix map3 usage
Happypig375 Aug 15, 2025
65d2b41
Make fold usage stand out more
Happypig375 Aug 15, 2025
7e22668
Add sum usage
Happypig375 Aug 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading