Commit Graph

95 Commits

Author SHA1 Message Date
Jay Hayes
c39916df2e Replace pipeline with composed function
At this point, the learner hasn't seen functions, the Enum module, or
the pipe operator, so it feels like a little much to add that here. The
reason it's needed is that the order of keys/1 and values/1 is reverse
of how it's defined. This is due to an implementation detail in Erlang's
maps. We /could/ use this as a learning opportunity rather than sorting
them, but I'm not sure what could be said about that...
2016-05-03 19:31:07 -05:00
Jay Hayes
b2458bb472 Consistent one-liner for receive-blocked processes 2016-05-03 08:23:57 -05:00
Jay Hayes
1611483206 Reword some more examples 2016-05-03 08:23:57 -05:00
Jay Hayes
cc47f7c9c6 Simplify cases 2016-05-03 08:23:56 -05:00
Jay Hayes
71dfd882c6 Tweak wording 2016-05-03 08:23:23 -05:00
Jay Hayes
8ea68548fe Simplify example 2016-05-03 08:23:23 -05:00
Jay Hayes
2d7982e9a3 Remove indirection of wait/0 2016-05-03 08:23:23 -05:00
Jay Hayes
b955a4db64 Remove unneeded case 2016-05-03 08:23:23 -05:00
Jay Hayes
6772308e9a Add a little more context to example description 2016-05-03 08:23:23 -05:00
Jay Hayes
dacaf4c0b1 Actually illustrate use of receive function 2016-05-03 08:23:22 -05:00
Jay Hayes
bef1cf5028 Add new test illustrating spawning processes 2016-05-03 08:23:00 -05:00
Alex
b69010d05c Map.fetch! -> Map.fetch
I think is better to continue use safe ```Map.fetch``` until we familiarize users with dangerous function concept.
Not every body comes from ruby background, with knowledge of ```?``` and ```!``` function notations.

test ifx
2016-04-26 21:16:43 +03:00
Uku Taht
30dcdd5efe Move blank in pin operator koan 2016-04-26 13:32:33 +01:00
Uku Taht
353ce95a1a Attempt clarifying the pin operator 2016-04-26 13:03:46 +01:00
Rabea Gleissner
72048db01f Fixes typo 2016-04-26 12:31:45 +01:00
Rabea Gleissner
919b877d51 Makes changing pattern more obvious 2016-04-26 12:24:57 +01:00
Rabea Gleissner
9ec6089bde Add new koan for anonymous functions with pattern matching 2016-04-26 12:07:45 +01:00
Zander Mackie
d1c7a179f6 Struct koans now calls '|' operator by correct name: 'cons' 2016-04-25 17:54:59 -04:00
Felipe Seré
fcb45c78da Merge pull request #78 from iamvery/trailing-commas
Add trailing commas to multi-line lists and maps
2016-04-24 10:44:14 +01:00
fabien townsend
ca1bd36322 Modify lists and maps style 2016-04-24 10:18:57 +02:00
Jay Hayes
7465dca41f Add trailing commas to multi-line lists and maps 2016-04-23 20:38:43 -05:00
Uku Taht
c60f7c0033 Use 'leveling' instead of 'levelling' 2016-04-24 02:24:14 +01:00
Jay Hayes
bc29450f67 Subjective word ordering
Subjectively, I find this to read better. Perhaps it's part of my North
American dialect?
2016-04-23 13:07:38 -05:00
Jay Hayes
f780777218 Typo "apart just /as/ easily" 2016-04-23 13:07:01 -05:00
Felipe Sere
b1479487b0 Create a test file for each of the koan modules 2016-04-23 12:31:05 +01:00
Felipe Sere
14d4e4f551 Make sure blank is on the right and improve koans 2016-04-23 12:03:13 +01:00
Rabea Gleissner
ee084b4563 fixes typos and some formatting 2016-04-22 15:04:59 +01:00
Uku Taht
2ed891389c Add explanation for the first koan 2016-04-20 11:32:13 +01:00
Uku Taht
ded0f11ec6 Use triple underscore instead of double 2016-04-20 11:23:44 +01:00
Uku Taht
ea2bb8f9bf Use bare double underscores instead of atoms 2016-04-19 13:35:20 +01:00
Uku Taht
452aa5d9ee Remove arithmetic koans 2016-04-18 13:31:32 +01:00
Uku Taht
57595eb05a Merge pull request #67 from ukutaht/koans_for_agents
Koans for agents
2016-04-11 14:11:13 +01:00
Uku Taht
0b07f61bef Merge pull request #66 from ukutaht/improve_enum_koans
Improve enum koans
2016-04-11 13:54:47 +01:00
Felipe Sere
6752ec758c Improve and enforce naming of koans at compile time 2016-04-10 19:14:35 +01:00
Felipe Sere
12a511b309 A few simple koans about agents 2016-04-10 19:07:06 +01:00
Felipe Sere
98ab1a0e26 Improve enum koans 2016-04-10 11:56:49 +01:00
Felipe Sere
2b999605f5 Improve the wording in the function koans 2016-04-10 00:24:31 +01:00
Uku Taht
4c49a20927 Be more positive in string koans 2016-04-10 00:12:23 +01:00
Uku Taht
b63a5d8e9a Combine keys and values map koans 2016-04-10 00:08:07 +01:00
Uku Taht
9e16bfdac8 Attempt at making maps easier to go through 2016-04-09 23:42:01 +01:00
Uku Taht
8b429c1efd Fix typo 2016-04-09 23:26:21 +01:00
Felipe Sere
96366991dc Sort the result from #keys and #values to make the result more obvious. 2016-04-06 22:05:48 +01:00
Felipe Sere
f98b0699f5 Improve punctuation in Structs koans 2016-03-21 21:39:57 +00:00
Felipe Sere
96b473a994 Improve punctuation in PatternMatching koans 2016-03-21 21:39:57 +00:00
Felipe Sere
690627656e Improve punctuation in Tasks koans 2016-03-21 21:39:57 +00:00
Felipe Sere
b95d4f1202 Fix punctuation 2016-03-21 21:39:57 +00:00
Felipe Sere
a0bb840cfc Improve the names of the process koans 2016-03-21 21:39:57 +00:00
Felipe Sere
60b18aae1f Pull helper methods out of koans 2016-03-21 21:39:57 +00:00
Felipe Sere
862fb19dd7 Improve enum koans 2016-03-21 21:39:57 +00:00
Felipe Sere
33a06b4ec6 Improve the function koans slightly 2016-03-21 21:39:57 +00:00