Commit Graph

355 Commits

Author SHA1 Message Date
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
Philip MEIER
bad4f8003e Correct spelling of function in Display.ProgressBar 2017-06-08 17:12:57 +01:00
membranepotential
2e6dd9aaad Move Sigils lesson down in runner.ex 2017-04-29 17:21:33 +02:00
Tim Jarratt
00eb17014a Move sigils to later in the lessons
While doing this, I also discovered that
there is also a reference to lists in numbers, but
that might a bit easier for someone to grasp, given
the hint that the koan gives, and the output they
see when they run it.
2017-04-25 22:38:49 +02:00
Tom Gurion
e64394fbaa Add nil example to the atoms koans 2017-04-22 22:59:08 +01:00
Tom Gurion
ca97177b99 Simplify atoms koans. Fix #185 2017-04-22 22:32:29 +01:00
Travis Truman
0df20b8b41 Correcting some spelling and grammar issues 2017-04-21 09:46:24 -04:00
Tom Gurion
1a6449ff1f Remove 'I think I need my number as a char' koan. Fix #176 2017-04-09 10:40:27 +01:00
Tom Gurion
4d667eff61 Add string interpolation koan. Fix #184 2017-04-06 16:36:23 +01:00
Tom Gurion
e81db22b87 String.strip is deprecated, replace with String.trim 2017-03-31 23:00:24 +01:00
Felipe Sere
2529a199e8 Just 'nil' might have lived long enough, 'receive' definitly does. 2017-03-31 17:24:40 +01:00
Sven Gehring
c708936456 Refactor Koan with slow/fast process example
A combined solution of the examples provided by
@iamvery and myself.
2017-03-22 15:10:21 +01:00
Sven Gehring
2881c95c00 Split koan with race condition into two more logical ones 2017-03-22 10:38:42 +01:00
Jay Hayes
41955a16de Fix unbound variable error in Elixir v1.5.0-dev
It's not clear to me why "e in _" ever worked, but this seems to make
things better. Afaict, the point of these clauses are to "rescue
anything".
2017-02-23 10:39:02 -06:00
Jay Hayes
f1fd2a2dad Uncomment 💡 moment about set size 2017-02-19 07:44:59 -06:00
Jay Hayes
95a2ed95a6 Fix sorted?/1 implementation 2017-02-19 07:44:45 -06:00
Jay Hayes
4a9800f1f7 Further simplify mapset example with sorted?/1 function 2017-02-19 07:37:57 -06:00
Jay Hayes
5731f8ac3b Simplify variable names and add space 2017-02-19 07:20:49 -06:00
Jay Hayes
cef72bc0f8 Add comment about "why 33?" 2017-02-19 07:15:23 -06:00
Jay Hayes
ca0151ba0c Simplify description 2017-02-19 07:14:39 -06:00
Jay Hayes
c08f22b0d2 Extract common value in example 2017-02-19 07:14:33 -06:00
Jay Hayes
84cd227108 whitespace 2017-02-19 07:13:01 -06:00
huyz
0985507d45 Fixed __. Should be ___ 2017-02-10 23:50:44 -08:00
huyz
0b1f19accc Clarify the koan that shows that MapSets are unordered. 2017-02-10 23:43:21 -08:00
Jesse J. Anderson
dafbfa6daa fix comma placement typo 2017-02-07 22:15:57 -08:00
Felipe Seré
136e02cafe Merge pull request #162 from srufle/master
Demonstrate put_in to manipulate nested struct values
2017-01-26 20:02:30 +00:00
Stephen Rufle
21a162b80e Changed to a single line, so its consistent with other sections 2017-01-24 18:34:07 -07: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
srufle
55f1648bbd Demonstrate put_in using atoms to manipulate nested values of a nested
Map
2017-01-22 11:15:17 -07:00
srufle
d467985778 Demonstrate update_in to manipulate nested struct values 2017-01-22 11:12:49 -07:00
srufle
516be35df9 Demonstrate put_in to manipulate nested struct values 2017-01-22 10:46:51 -07:00
Jay Hayes
578d2cb62e Merge pull request #156 from leapingfrogs/master
Normalize the file before calling reload.
2017-01-21 18:20:26 -06:00
Jay Hayes
77a53e7c13 Fix Elixir 1.4 function paren warnings 2017-01-21 08:18:10 -06:00
Ian Davies
5556c6bc94 Normalize the file before calling reload.
Fixing: https://github.com/elixirkoans/elixir-koans/issues/138

By normalizing first we remove the IntelliJ specific suffix if it is
present which allows the ".ex" extension to correctly match IntelliJ
edited files.
2017-01-18 22:00:02 -08:00
Felipe Seré
cf244e673f Merge pull request #150 from iamvery/format-match-failures
Format match failures
2016-12-23 16:51:49 +01:00
Jay Hayes
fbf1e139f0 Properly unwrap the koan body the keyword list argument
It's a bummer that this isn't tested. I spent just a couple minutes
trying to come up with where to put the test, but gave up for time's
sake.

See https://github.com/elixirkoans/elixir-koans/issues/151 for more
information and screenshots.
2016-12-23 08:54:06 -06:00
Jay Hayes
4bb0b06471 Format match? failures more elegantly
[#144]
2016-12-23 08:29:04 -06:00
Jay Hayes
08973f4b54 Add test for equality failure
This also revealed that the "test painter" has a missing interface,
yellow/0. Fixed!

[#144]
2016-12-23 08:28:56 -06:00
Jay Hayes
482eee1f6b whitespace 2016-12-23 08:27:45 -06:00
Dillon Kearns
490fa050e5 Add koans to practice building anonymous functions using & for arbitrary expressions 2016-10-29 23:05:08 -04:00
Jay Hayes
cdd83644c0 Merge pull request #146 from iamvery/tweaks
A few tweaks to Blanks
2016-10-25 17:57:44 -05:00
Jay Hayes
78995827f7 Remove a couple more unneeded function heads
The `:do` seems to be accounted for by the implementation. Tests
shouldn't pass if this is needed.
2016-10-17 08:15:14 -05:00
Jay Hayes
fcc4cc6548 Remove unused function heads
Basically `___` will always quote as a tuple.
2016-10-17 08:11:45 -05:00
Jay Hayes
146da99c32 Replace function head with List.wrap/1 2016-10-17 07:55:03 -05:00
Jay Hayes
b277036841 Remove unused private functions 2016-10-17 07:50:16 -05:00
Simone D'Amico
3279a13cd8 The koan about Mapset.member?/2 should appear before Mapset.member?/2 is used 2016-07-21 20:35:54 +01:00
Benjamin Chodoroff
87b5bb263c only run elixir code
ignore, for example, editor swapfiles
2016-07-05 16:04:07 -04:00