From b890a98a49c9bed1c304d11e58331eb76bcb2c04 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Sat, 29 Apr 2017 01:11:05 -0700 Subject: [clojure/en] Fix typo: "ans" should be "and" (#2717) --- clojure.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clojure.html.markdown') diff --git a/clojure.html.markdown b/clojure.html.markdown index bfe8d79e..7830f228 100644 --- a/clojure.html.markdown +++ b/clojure.html.markdown @@ -292,7 +292,7 @@ keymap ; => {:a 1, :b 2, :c 3} ; When you are in a situation where you want more freedom as where to ; put the result of previous data transformations in an ; expression, you can use the as-> macro. With it, you can assign a -; specific name to transformations' output ans use it as a +; specific name to transformations' output and use it as a ; placeholder in your chained expressions: (as-> [1 2 3] input -- cgit v1.2.3 From 61582f64149f6d5bd00880dfebd7e2b4904a6d77 Mon Sep 17 00:00:00 2001 From: Peter Kehl Date: Fri, 28 Sep 2018 17:02:14 -0700 Subject: Changed a name in a code example to make it British English-friendly The previous name is considered rude by Brits --- clojure.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clojure.html.markdown') diff --git a/clojure.html.markdown b/clojure.html.markdown index 7830f228..c94625d6 100644 --- a/clojure.html.markdown +++ b/clojure.html.markdown @@ -150,7 +150,7 @@ x ; => 1 ; You can also use this shorthand to create functions: (def hello2 #(str "Hello " %1)) -(hello2 "Fanny") ; => "Hello Fanny" +(hello2 "Julie") ; => "Hello Julie" ; You can have multi-variadic functions, too (defn hello3 -- cgit v1.2.3 From aa353ba1a555baae1f47051f3b5713a5769be1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20de=20Santa?= Date: Thu, 24 Oct 2019 13:29:43 -0300 Subject: Add "Clojure for the Brave and True" resource --- clojure.html.markdown | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clojure.html.markdown') diff --git a/clojure.html.markdown b/clojure.html.markdown index c94625d6..16771e25 100644 --- a/clojure.html.markdown +++ b/clojure.html.markdown @@ -416,3 +416,6 @@ Clojuredocs.org has documentation with examples for most core functions: Clojure-doc.org (yes, really) has a number of getting started articles: [http://clojure-doc.org/](http://clojure-doc.org/) + +Clojure for the Brave and True has a great introduction to Clojure and a free online version: +[https://www.braveclojure.com/clojure-for-the-brave-and-true/](https://www.braveclojure.com/clojure-for-the-brave-and-true/) -- cgit v1.2.3 From 13991f615a155854465b40882e468d785e15253a Mon Sep 17 00:00:00 2001 From: Mathieu Gemard Date: Fri, 15 Jan 2021 11:31:24 +0100 Subject: Fix the as-> macro exemple (#4054) --- clojure.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clojure.html.markdown') diff --git a/clojure.html.markdown b/clojure.html.markdown index 16771e25..20812a9b 100644 --- a/clojure.html.markdown +++ b/clojure.html.markdown @@ -298,8 +298,8 @@ keymap ; => {:a 1, :b 2, :c 3} (as-> [1 2 3] input (map inc input);=> You can use last transform's output at the last position (nth input 2) ;=> and at the second position, in the same expression - (conj [4 5 6] input [8 9 10])) ;=> or in the middle ! - + (conj [4 5 6] input 8 9 10)) ;=> or in the middle ! + ; Result: [4 5 6 4 8 9 10] ; Modules -- cgit v1.2.3