diff options
| author | twells46 <tom@wellsth.com> | 2026-01-25 11:00:22 -0600 |
|---|---|---|
| committer | twells46 <tom@wellsth.com> | 2026-01-25 11:00:22 -0600 |
| commit | 3faf92434191bc0166222308d1d288f8b0f6dd5f (patch) | |
| tree | 5cb680a462777c85fa6d29e514ce34a949794e10 /notes | |
Diffstat (limited to 'notes')
| -rw-r--r-- | notes | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +Consider concatMap + +Use dropWhile to drop based on a specific condition + +takeWhile returns the longers possible prefix that satisfies a condition +span does the same, but also returns the rest of the list (2 element tuple) + +Cycle repeats a given sequence infinitely: +cycle [1,2,3] = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]... + +Repeat is like cycling a single element |