3 ms·
I assume that let tortilla = returnBurrito (Some Veggie, []) is a typo and it should be return Burrito ? Also somewhat familiar with FP but not thi
by nkrisc 2y ago
I assume that
let tortilla = returnBurrito (Some Veggie, [])
is a typo and it should be
return Burrito
?
Also somewhat familiar with FP but not this specific language (guessing Haskell?), is the `>==` operator essentially a "pipe" operator?
- hansonkd 2y ago`returnBurrito` is defined above it. `return` is a specific function of a Monad, and it is not used like the keyword "return" in other imperative languages.
- nkrisc 2y agoOh yeah, oops. I missed that.
- deleted 2y ago[deleted]
- chris_pie 2y agoThis is F#. >== is a bind operator, but it's not built into the language, so it's defined as a custom operator here. |> is a pipe