Shannon Oram
362cbf77c0
Rename function. format_result() -> inspirational_quote()
2018-07-11 18:22:18 +10:00
Shannon Oram
678d15de07
Add koan "You can use pattern matching to define [...]"
...
Koan added following comment on Github.
https://github.com/elixirkoans/elixir-koans/issues/222#issuecomment-399979891
[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]
2018-07-11 16:09:33 +10:00
Martino Visintin
b07df7c780
add .formatter.exs + format
2018-05-22 21:46:54 +01:00
Felipe Sere
1a62898883
Move koan about keyword lists as arguments to the function koan
2018-02-02 07:55:14 +00:00
Michal Kwiatkowski
586e5ca0b1
Use more succinct syntax for mapping with String.capitalize.
2017-10-27 09:01:36 +02:00
Jay Hayes
b8d7abe4ea
Change definition of anonymous greet
...
That prevents the confusion of mixing up the anonymous and named
implementations fixed by 55f592.
2017-01-24 08:08:01 -06:00
Jason Huang
55f59208b2
should call anonymous function with dot
2017-01-24 13:36:42 +08:00
Dillon Kearns
490fa050e5
Add koans to practice building anonymous functions using & for arbitrary expressions
2016-10-29 23:05:08 -04:00
Mahmut Surekci
317ea5d208
Reposition MapSets koans. Reposition some of the koans to make it clear why MapSets are interesting.
2016-05-27 15:51:45 +01:00