Commit Graph

177 Commits

Author SHA1 Message Date
Jay Hayes
43f832d4e3 Clarify List.delete example
Using numbers in the example tends to confuse the learner about what the
purpose of the second argument to delete is. They might think it's an
index value. This is further exacerbated by the example's value at index
2 being 2. To clear this up, change the example to use non-numeric
values.
2016-06-13 09:27:56 -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
Uku Taht
3c217073f5 Merge pull request #125 from rianrainey/remove-numbers-trailing-whitespace
Remove trailing whitespace
2016-06-08 10:23:59 +01:00
Rian Rainey
31332cfdbb Remove trailing whitespace 2016-06-06 18:34:11 -05:00
Rian Rainey
25f9be439c Fix grammar omission 2016-06-06 06:49:21 -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
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
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
d9ee4ccea8 Adds an introduction 2016-05-27 10:24: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
Mahmut Surekci
317ccc790f James Bond reference in the intro title 2016-05-26 18:48:46 +01:00
Mahmut Surekci
ba673557cf Remove blank line and intro title changed 2016-05-26 10:33:46 +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
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
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
5f149826e1 Rename existing koans to make room for sigils 2016-05-16 18:43:22 -05:00
Felipe Sere
f5477f0fb0 All modules have an intro. 2016-05-11 21:44:18 +01:00
Felipe Sere
c0a670257d Fixes sample intro. 2016-05-10 23:40:31 +01:00
Felipe Sere
b90c748f20 Adds an example (cheesy!) first intro. 2016-05-10 23:03:42 +01: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
Jay Hayes
92973a0fb7 Add keyword list koan at after maps 2016-05-10 07:21:13 -05:00
Ria Cataquian
bb4959ddc0 Fix some type 2016-05-08 04:16:06 +08:00
Ria Cataquian
65756b933d Various suggestion improvements 2016-05-08 02:59:48 +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
52f8ed0d6c Add atoms koan as between strings and tuples 2016-05-05 10:41:28 -05:00
Uku Taht
0a57e38ecb Merge pull request #111 from joneslee85/patch-1
Refactor the comma in List syntax
2016-05-05 11:38:20 +01:00
Uku Taht
964d5fe68d Merge pull request #109 from iamvery/whitespace
Fix whitespace in tasks koan
2016-05-05 11:37:50 +01:00
Uku Taht
85d7cd1540 Merge pull request #110 from iamvery/update-agents-koan
Show explicit example of named agents
2016-05-05 11:37:40 +01:00
Trung Lê
c1e3f6a80d Refactor the comma in List syntax 2016-05-05 19:23:25 +10:00
Jay Hayes
7711936893 Show explicit example of named agents 2016-05-04 19:57:55 -05:00
Jay Hayes
a2060d6e5b whitespace 2016-05-04 19:41:40 -05:00
Jay Hayes
c9b20bb09a Update description of piping 2016-05-04 19:33:41 -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