Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add koan "You can use pattern matching to define [...]"
Koan added following comment on Github. elixirkoans#222 (comment) [quote] And, in fact, you can define multiple cases for a function using this sytnax: ``` lolwat = fn "lol" -> "wat" _ -> "haha" end lolwat.("lol") # => "wat" lolwat.("anything") # => "haha" lolwat.("rly") # => "haha" ``` [/quote]
- Loading branch information