Am I correct in thinking a function which takes a ...
# getting-started
p
Am I correct in thinking a function which takes a data class as a parameter cannot decompose said parameter directly in the function head (rather, it has to be done in the function body)?
👌 1
2
e
I believe you mean destructure (correct though)
destructuring is allowed in lambda parameters but function parameters must have names
👍 1