f = fn -> 2 end g = fn -> 2 end
How can I match the result of g with f’s ?
If I do it like this, it fails because function calls are not allowed in pattern matching.
case g.() do f.() -> 1 4 -> 2, 5 -> 3, _ -> 6 end
This is dummy version of what I need to do in my project. Basically I need to pattern match the result of a function with the result of other functions. But don’t know how to go about it.