Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



`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.


Oh yeah, oops. I missed that.


This 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: