From 4d4cb3b93a82c2681c808f7017deefdd7f67743c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Honor=C3=A9?= Date: Fri, 25 Mar 2016 18:12:04 +0000 Subject: [PATCH 1/2] First encounter with `nil` In 02_strings.clj, the answer to (= __ (string/index-of "hello world" "bob")) is `nil` but `nil` is not obvious for somebody who never saw it before. This step introduces it. --- src/koans/01_equalities.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/koans/01_equalities.clj b/src/koans/01_equalities.clj index 8f76176..1a07f71 100644 --- a/src/koans/01_equalities.clj +++ b/src/koans/01_equalities.clj @@ -32,5 +32,8 @@ "Symbolism is all around us" (= 'hello (symbol __)) + "Introducing nil" + (= __ nil) + "When things cannot be equal, they must be different" (not= :fill-in-the-blank __)) From ed23b910faa91d566251aafcb40a0dff24f28af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Honor=C3=A9?= Date: Fri, 25 Mar 2016 21:53:55 +0000 Subject: [PATCH 2/2] Updated description Thanks to @Strikingwolf for the suggestion! --- src/koans/01_equalities.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/koans/01_equalities.clj b/src/koans/01_equalities.clj index 1a07f71..aa628e5 100644 --- a/src/koans/01_equalities.clj +++ b/src/koans/01_equalities.clj @@ -32,7 +32,7 @@ "Symbolism is all around us" (= 'hello (symbol __)) - "Introducing nil" + "What could be equivalent to nothing?" (= __ nil) "When things cannot be equal, they must be different"