Commit Graph

539 Commits

Author SHA1 Message Date
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
Felipe Seré
ecb130165e Merge pull request #223 from vise890/formatter
add .formatter.exs + format
2018-05-24 22:57:42 +01:00
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Jay Hayes
08c90ce0d8 Merge pull request #220 from laSinteZ/master
chore: removed trailing whitespaces, added newline
2018-05-03 15:13:48 -05:00
Vyacheslav Bikbaev
5247fcfff6 chore: removed trailing whitespaces, added newline at the end of the file
Signed-off-by: Vyacheslav Bikbaev <la.sintez@gmail.com>
2018-05-03 22:56:48 +03:00
Felipe Seré
e8bb66540e Merge pull request #217 from Cohen-Carlisle/reorder-map-set-size
introduce MapSet.size/1 earlier
2018-03-03 14:51:57 +00:00
Felipe Seré
5d7fc4abdb Merge pull request #218 from Cohen-Carlisle/more-number-koans
more number koans
2018-03-03 12:26:50 +00:00
Cohen Carlisle
dd85c85b65 add modulo koan (Kernel.rem/2) 2018-03-02 12:49:55 -05:00
Cohen Carlisle
3a58b49fe6 remove elementary MapSet.size/1 koan
size is covered under koan "However, I do not allow duplication"
2018-03-02 10:18:25 -05:00
Cohen Carlisle
0111b0451c more number koans 2018-03-01 19:13:45 -05:00
Cohen Carlisle
432988014a introduce MapSet.size/1 earlier
specifically, before it is used to show sets do not have duplicates
2018-03-01 14:00:36 -05:00
Felipe Seré
18ce1752d4 Merge pull request #215 from elixirkoans/minor-koan-rearrangement
Minor koan rearrangement
2018-02-02 09:33:57 +00:00
Felipe Sere
b9b1a58b89 When checking for koans, make sure we talk about loaded modules first. 2018-02-02 08:22:44 +00:00
Felipe Sere
03c6ddc33b Move pattern matching on structs koan to the later pattern matching module 2018-02-02 08:03:12 +00:00
Felipe Sere
178bb41361 Use more explicit form of function definition for the time being 2018-02-02 07:55:35 +00:00
Felipe Sere
1a62898883 Move koan about keyword lists as arguments to the function koan 2018-02-02 07:55:14 +00:00
Felipe Seré
bbb085a66b Merge pull request #213 from jgandt/convert_from_exfswatch_to_file_system
Convert from ExFSWatch to FileSystem
2018-01-15 16:04:19 +00:00
Jeff Gandt
2c205e03e8 Travis: Ensure inotify-tools package is installed/up to date 2018-01-05 10:27:38 -05:00
Jeff Gandt
42f3c93640 Don't pass args to Watcher 2017-12-13 09:43:08 -05:00
Jeff Gandt
3742caf1b4 Convert from the retired ExFSWatch to FileSystem
Initial working commit. Use the new GenServer only API.
2017-12-13 09:39:54 -05:00
Uku Taht
0ee975cddd Merge pull request #209 from AMar4enko/master
Fix __info__ for the upcoming Elixir 1.6
2017-11-27 10:43:41 +00:00
Uku Taht
0f72aaeefb Merge pull request #212 from allanbreyes/fix-comma
Fix comma placement
2017-11-26 13:57:35 +00:00
Allan Reyes
054f425100 Fix comma placement 2017-11-24 15:47:37 -08:00
Jay Hayes
3fe255eb92 Merge pull request #210 from Nagasaki45/travis1.5.2
Add elixir 1.5.2 to travis tests matrix
2017-11-07 17:01:16 -06:00
Tom Gurion
00bcab75d0 Add elixir 1.5.2 to travis tests matrix 2017-11-07 22:56:38 +00:00
Alex Marchenko
02fef95dc6 Fix __info__ for the upcoming Elixir 1.6 2017-11-07 13:17:33 +07:00
Felipe Seré
b963b803fc Merge pull request #208 from mkwiatkowski/master
Use more succinct syntax for mapping with String.capitalize
2017-10-27 10:36:39 +01:00
Michal Kwiatkowski
586e5ca0b1 Use more succinct syntax for mapping with String.capitalize. 2017-10-27 09:01:36 +02:00
Felipe Seré
086136af9c Merge pull request #206 from danielemegna/map_koan_improve
Removed useless 'initial' var
2017-09-08 13:04:56 +01:00
Daniele Megna
1c5cf730d8 Removed useless 'initial' var
@person module attribute can be used instead
2017-09-07 14:31:14 +02:00
Felipe Seré
774a7a2d12 Merge pull request #193 from marosluuce/convert-to-application
Convert to application
2017-08-22 07:26:37 +01:00
Nathan Walker
98dde25b20 Update contributors. 2017-07-28 13:11:02 -05:00
Nathan Walker
b32e82b19b Switch over to Elixir option parsing. 2017-07-28 13:03:41 -05:00
Nathan Walker
372d7f70ac Extracted watcher and runner into supervision tree. 2017-07-28 13:00:18 -05:00
Nathan Walker
3c73ea00fa Extract modules module. 2017-07-28 12:58:50 -05:00
Nathan Walker
b2dfc28650 Extract tracker into supervision tree. 2017-07-28 12:56:02 -05:00
Nathan Walker
b71221977c Extract display into supervision tree. 2017-07-28 12:56:02 -05:00
Felipe Seré
9025744154 Merge pull request #200 from Nagasaki45/order
Get lessons order from filenames. Fix #196
2017-07-20 21:53:57 +01:00
Tom Gurion
588018409d Get lessons order from filenames. Fix #196 2017-07-20 10:01:29 +01:00
Felipe Seré
2fc67561d9 Merge pull request #201 from EricAnderson-AAI/master
Added GenServer Koans
2017-07-20 07:33:51 +01:00
Eric Anderson
33d0892c7a GenServers swapped lesson position with Protocols 2017-07-19 19:28:57 -05:00
Eric Anderson
3f1eb8f397 Updated password strings 2017-07-17 21:15:50 -05:00
Felipe Seré
06bb8cbdd5 Merge pull request #199 from codefupanda/master
Fetching values of repeated key in keywordlist
2017-07-15 11:22:59 +01:00
Eric Anderson
c5a332a2f8 Added remaining handlers to the External API 2017-07-15 01:45:33 -05:00
Eric Anderson
8495a48717 Changed GenServer from BicycleLock to Laptop so examples will flow better 2017-07-15 01:33:16 -05:00
Eric Anderson
cb98ca1c52 Renamed start_server/1 to start_link/1 and updated a password. 2017-07-15 00:49:52 -05:00
Eric Anderson
78d0181cce Updated 19_genservers.ex w/code review suggestions and updated genservers_koans_test answer values 2017-07-14 15:51:12 -05:00
Eric Anderson
62ab2b9688 Added GenServer Koans 2017-07-13 14:39:15 -05:00
codefupanda
7a9f04dd45 Added pattern matching koan for keyword list 2017-07-11 22:05:07 +05:30
codefupanda
95e87c3fd8 Fetching values of repeated key in keywordlist 2017-07-11 13:39:54 +05:30