aboutsummaryrefslogtreecommitdiff
path: root/notes
diff options
context:
space:
mode:
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