Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case Foos of
- _ when IsBar -> baz;
- [] -> quux;
- [Foo] -> Foo
- end.
- vs.
- case {IsBar, Foos} of
- {true , _} -> baz;
- {false, []} -> quux;
- {false, [Foo]} -> Foo
- end.
- vs.
- case IsBar of
- true -> baz
- false ->
- case Foos of
- [] -> quux;
- [Foo] -> Foo
- end
- end.
Add Comment
Please, Sign In to add comment