Skip to content

Commit

Permalink
Update snippet04.ml to match Haskell snippet
Browse files Browse the repository at this point in the history
This is the same code found in section 8.5 in the KleisliComposition module in order to match the Haskell code to which it is associated
  • Loading branch information
jakubsvec001 authored Jan 20, 2025
1 parent 951a197 commit c945c79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/1.4/code/ocaml/snippet04.ml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
let pure x = x, ""
let ( >=> ) = fun m1 m2 ->
let y, s1 = m1 x in
let z, s2 = m2 x in
z, StringLabels.concat +sep:"" [ s1; s2 ]

0 comments on commit c945c79

Please sign in to comment.