Why do we need the `do` keyword?

I am not sure I understand the requirement, but I would not invest too much in mapping it to a construct/sentence in a natural language, and would recommend trying to understand them as they are.

There is not much to do blocks, just syntactic sugar.

f((x, y) -> body..., args...)

is equivalent to/can be written as

f(args...) do x, y
    body...
end
4 Likes