Commit Graph

118 Commits

Author SHA1 Message Date
Jay Hayes
ec08c7fd7a Add more examples for Integer.parse
- show behavior of parsing with unparsable suffix bits
- show behavior of parsing float as integer
2016-06-13 09:13:46 -05:00
Jay Hayes
2127c9ea27 Update Float.parse example to actually parse a float 2016-06-13 09:13:27 -05:00
Jay Hayes
4674b5b694 Move Float.parse examples right after Integer.parse 2016-06-13 09:12:58 -05:00
Jay Hayes
f9a7f7016c Prefer function output over input
When learning about the behavior of a function, in general the learning
experience is better when provided with the input and asked for the
output.
2016-06-10 11:08:25 -05:00
Mahmut Surekci
48df8ad8af Demonstrating MapSets similarity to List using Enum.fetch. Koan added to demonstrate MapSets being unordered after 32. 2016-05-27 18:44:47 +01:00
Mahmut Surekci
925f6ba2f7 Change order of answers to make unit tests pass 2016-05-27 15:54:48 +01:00
Mahmut Surekci
4f81db44a2 Merge remote-tracking branch 'remotes/upstream/master' into add_map_sets_koans
Conflicts:
	lib/runner.ex
2016-05-27 15:47:49 +01:00
Felipe Seré
c72e60db41 Merge pull request #124 from elixirkoans/protocols
Protocols
2016-05-27 14:09:53 +01:00
Mahmut Surekci
c95f97e968 Merge remote-tracking branch 'remotes/origin/master' into add_map_sets_koans 2016-05-27 13:57:35 +01:00
gemcfadyen
5b2ff206fa update the default case to use a generic message 2016-05-27 10:17:21 +01:00
gemcfadyen
e9ab727448 Adds a koan to demonstrate the use of deriving a default behaviour 2016-05-27 10:09:33 +01:00
gemcfadyen
143b2bb7ff collapse two koans into one 2016-05-26 09:14:53 +01:00
Mahmut Surekci
5e9e5e3891 Adding new koans for map sets 2016-05-26 02:02:20 +01:00
Mahmut Surekci
458d18494e Added some koans for the Range module 2016-05-25 23:11:56 +01:00
gemcfadyen
c970ed01dd Protocol examples updated to use Structs 2016-05-25 17:44:42 +01:00
Mahmut Surekci
40174320f9 fix failing tests - for real this time :D 2016-05-25 13:45:10 +01:00
Mahmut Surekci
57d1b5399a fix failing test 2016-05-25 12:09:36 +01:00
Mahmut Surekci
a57ba3da2d Add koans for floats, rename to numbers koans, reposition on the list 2016-05-25 12:06:52 +01:00
Mahmut Surekci
9baecdf031 Add a test for hexidecimal parsing 2016-05-24 19:43:00 +01:00
Mahmut Surekci
1f9d6a07cc fixing failing test 2016-05-24 18:00:16 +01:00
Mahmut Surekci
cc3232a31f Added very basic koans for integers 2016-05-24 17:29:18 +01:00
Felipe Sere
74b6e06ddf Fix typos and bring back the failing pattern match. 2016-05-20 08:02:59 +01:00
Felipe Sere
fc00c6ae60 Move pinning to the back of the kaon and enhance example 2016-05-18 22:40:19 +01:00
Jay Hayes
e60a284e36 Make list sigil lessons a little more challenging 2016-05-17 07:54:33 -05:00
Jay Hayes
649c649084 Port sigil koans from iamvery/elixir-koans
7705d743ac/about_sigils.exs
h/t @sebastiangeiger
2016-05-16 18:43:57 -05:00
Jay Hayes
1c182a2c8c Remove metaprogramming-related keyword list koans
Too advanced at this point. Will considering including something like
this in #21.
2016-05-10 07:21:13 -05:00
Jay Hayes
b45a08135a Add keyword lists koan 2016-05-10 07:21:13 -05:00
Ria Cataquian
97a60b095a Fix failing tests 2016-05-08 03:09:50 +08:00
Jay Hayes
d37df5fa77 Swap order of zipped lists to create learning opportunity
Zipping atoms and numbers creates an opportunity for the learner to
realize "💡 I just made a keyword list!"
2016-05-05 17:48:47 -05:00
Jay Hayes
ad011d80f3 Establish that modules are atoms, then show function call on them 2016-05-05 10:43:17 -05:00
Jay Hayes
948fbddcdf Remove unhelpful example
Not really useful without showing dot access.
2016-05-05 10:42:57 -05:00
Jay Hayes
ee89055af6 Remove commented koans
We can't pull this off right now since answers can't be expressions.
2016-05-05 10:41:57 -05:00
Jay Hayes
7b64bd36e9 Add other lessons that don't work with answer system 2016-05-05 10:41:28 -05:00
Jay Hayes
53fc465c3f Add atom koans 2016-05-05 10:41:28 -05:00
Jay Hayes
7711936893 Show explicit example of named agents 2016-05-04 19:57:55 -05:00
Felipe Seré
f5af10d87a Merge pull request #104 from snikolau/add-list-wrap-koan
Add wrapping list koan
2016-05-04 23:42:10 +01:00
snikolau
2e21cdf11b Add wrapping list koan 2016-05-04 22:57:05 +01:00
Jay Hayes
e4771a46a4 Remove other process killing example
The narrative no longer reads consistently... Just 🔪 it
2016-05-04 15:29:20 -05:00
Jay Hayes
6aae32e672 Explain FIFO nature of message in own example 2016-05-04 15:17:52 -05:00
Jay Hayes
4e4e35f575 Remove process about killing others 😆 2016-05-04 15:13:35 -05:00
Jay Hayes
65b9af48b4 Add example of process as state 2016-05-04 15:07:12 -05:00
Jay Hayes
6126d5a836 Add koan illustrating tail recursion 2016-05-04 15:06:57 -05:00
Jay Hayes
1f24de98f4 Rearrange existing koans to paint a clearer picture 2016-05-04 15:06:39 -05:00
Jay Hayes
322799a655 Remove koans illustrating self-exit
I don't really like these examples, because the process would exit
anyway when the function returns... Also having to sleep is not ideal.
2016-05-04 15:06:12 -05:00
Jay Hayes
2629dc0523 whitespace 2016-05-04 15:05:19 -05:00
Jay Hayes
1f1112c888 Add koan illustrating that a process is referenced by a pid 2016-05-04 15:05:19 -05:00
Uku Taht
bc8f98d5d9 Merge pull request #100 from iamvery/tweak-maps-koan
Replace pipeline with composed function in maps koan
2016-05-04 15:49:05 +01:00
Jay Hayes
e2468b92cc Avoid keys order issue by using Maps.has_key?/2 2016-05-04 09:28:49 -05:00
Jay Hayes
f93e29cc8c Remove "keys and values" example 2016-05-04 09:28:35 -05:00
Uku Taht
43d4ac5360 Merge pull request #92 from iamvery/update-koans
Update various koans
2016-05-04 09:49:48 +01:00