Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions resources/public/javascript/tryclojure.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var pages = [
{
verify: function (data) { return data.expr == "(map inc [1 2 3 4])"; }
},
{
verify: function (data) { return data.expr == "(:zar h \"not found\")"; }
},
{
verify: function (data) { return false; }
}
Expand Down
23 changes: 17 additions & 6 deletions resources/public/tutorial/page11.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
<p>Excellent work.</p>

<p>
Well, that's all there is right now. This tutorial is still a work in progress, and I'm working on more
steps. If anybody wants to contribute, you can find a link to the Github repository on the 'about' page.
Furthermore, if you're just a brand new Clojure developer looking for some learning experiences, check
out the 'links' page. You'll find links to some tutorials and such there.
Let's define a hash-map as we seen earlier:<br/>
<code class="expr">(def h {:foo "buu" :bar "bazz"})</code>
</p>
<p>
Now try some of this magic:<br/>
<code class="expr">(:bar h "not found")</code>
</p>
<p>
This is actually a convenient version of <code class="expr">(get h :bar "not found")</code> and it
says:
</p>
<p>
"Give me the value associated with the key <code class="expr">:bar</code> if it exists in the map,
or else the string <code class="expr">"not found"</code>".
</p>
<p>
Try <code class="expr">(:zar h "not found")</code> to continue.
</p>
8 changes: 8 additions & 0 deletions resources/public/tutorial/page12.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<p>Excellent work.</p>

<p>
Well, that's all there is right now. This tutorial is still a work in progress, and I'm working on more
steps. If anybody wants to contribute, you can find a link to the Github repository on the 'about' page.
Furthermore, if you're just a brand new Clojure developer looking for some learning experiences, check
out the 'links' page. You'll find links to some tutorials and such there.
</p>