2 ms·
I think generally the issue of when to use <- and when to use -> and when to use = is one of the few things about the language that makes my head spin.
by dnautics 8y ago
I think generally the issue of when to use <- and when to use -> and when to use = is one of the few things about the language that makes my head spin.
- Exuma 8y ago<- 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
- dnautics 8y ago<- 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).