aboutsummaryrefslogtreecommitdiff
path: root/notes
diff options
context:
space:
mode:
authortwells46 <tom@wellsth.com>2026-01-25 11:00:22 -0600
committertwells46 <tom@wellsth.com>2026-01-25 11:00:22 -0600
commit3faf92434191bc0166222308d1d288f8b0f6dd5f (patch)
tree5cb680a462777c85fa6d29e514ce34a949794e10 /notes
Initial commitHEADmain
Diffstat (limited to 'notes')
-rw-r--r--notes11
1 files changed, 11 insertions, 0 deletions
diff --git a/notes b/notes
new file mode 100644
index 0000000..c899a16
--- /dev/null
+++ b/notes
@@ -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