Hacker News new | past | comments | ask | show | jobs | submit login

<- is a comprehension, its like a for loop.

-> is like for everything else like case and cond

= is bind operator and is only used when you want to pattern match




<- is used for with as well and that is not a comprehension, and in feel way more like an = pattern match. -> is used in lambdas, which is kind of like case (but not cond).


yeah i forgot -> for lambdas. when is <- used in case/cond/lambdas?


It's not. It's used in "with", sorry that wasn't clear.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: