Skip to content

Commit 27daf4a

Browse files
committed
add reason fixes to section 1.4
1 parent 04ab67b commit 27daf4a

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
let ( >=> ) = fun m1 m2 ->
22
let y, s1 = m1 x in
33
let z, s2 = m2 x in
4-
z, StringLabels.concat +sep:"" [ s1; s2 ]
4+
z, StringLabels.concat ~sep:"" [ s1; s2 ]
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
let pure = x => (x, "");
1+
let (>=>) = (m1, m2) => {
2+
let (y, s1) = m1(x);
3+
4+
let (z, s2) = m2(x);
5+
6+
(z, StringLabels.concat(~sep="", [s1, s2]));
7+
};
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
let up_case: string => writer(string) =
2-
s => (String.uppercase(s), "up_case ");
1+
let return: 'a => writer('a) = a => (a, "");
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
let to_words: string => writer(list(string)) = (
2-
s => (String.split(s, ~on=' '), "to_words "):
3-
string => writer(list(string))
4-
);
1+
let up_case: string => writer(string) =
2+
s => (String.uppercase(s), "up_case ");
3+
4+
let to_words: string => writer(list(string)) =
5+
s => (String.split(s, ~on=' '), "to_words ");kkkk

0 commit comments

Comments
 (0)