Going over the Haskell MOOC again, this is one of the questions:
Without running it in GHCi, what does the following expression print: (let x = 'w' in [x,'o',x]) ++ "!"
Conversation
(The MOOC is in Russian, unfortunately, but rumor has it they're working on an English version!)
2
4
I have a confession: let..in was (probably still is) one of the most confusing aspects of learning Haskell. I prefer where.
2
3
I learned it by thinking about the equivalent Rust:
let x = 1;
x + 1
is the same as:
let x = 1
in x + 1

