summaryrefslogtreecommitdiffhomepage
path: root/fr-fr/clojure-fr.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2015-10-18 00:26:19 +0800
committerAdam Bard <github@adambard.com>2015-10-18 00:26:19 +0800
commit85fa357b8a3e441e5c160f18ca6d19cdea7d0160 (patch)
tree16c5909f3f88d06f7e1cb3a7ea12550d1a759530 /fr-fr/clojure-fr.html.markdown
parent7ee13cf29283d958c2059027dd0ccab80cdd49cf (diff)
Update clojure-fr.html.markdown
Diffstat (limited to 'fr-fr/clojure-fr.html.markdown')
-rw-r--r--fr-fr/clojure-fr.html.markdown6
1 files changed, 4 insertions, 2 deletions
diff --git a/fr-fr/clojure-fr.html.markdown b/fr-fr/clojure-fr.html.markdown
index 25911ea8..1cedda1d 100644
--- a/fr-fr/clojure-fr.html.markdown
+++ b/fr-fr/clojure-fr.html.markdown
@@ -276,12 +276,14 @@ ressemblent à toutes les autres formes:
(print "Saying hello to " name)
(str "Hello " name)) ; => "Hello Urkel" (prints "Saying hello to Urkel")
-; Utilisez les Threading Macros (-> et ->>) pour exprimer plus clairement vos transformations, en y pensant de manière multi-niveaux:
-; La "flèche simple" ou "Thread-first", insère, à chaque niveau de la transformation, la forme courante en la seconde position de la forme suivante, constituant à chaque fois un nouvel étage de transformation.Par exemple:
+; Utilisez les Threading Macros (-> et ->>) pour exprimer plus clairement vos transformations, en y pensant de manière multi-niveaux.
+
+; La "flèche simple" ou "Thread-first", insère, à chaque niveau de la transformation, la forme courante en la seconde position de la forme suivante, constituant à chaque fois un nouvel étage de transformation. Par exemple:
(->
{:a 1 :b 2}
(assoc :c 3) ;=> Génère ici (assoc {:a 1 :b 2} :c 3)
(dissoc :b)) ;=> Génère ici (dissoc (assoc {:a 1 :b 2} :c 3) :b)
+
; Cette expression est ré-écrite en: (dissoc (assoc {:a 1 :b 2} :c 3) :b) et est évaluée en : {:a 1 :c 3}
; La "flèche double" ou "Thread-last" procède de la même manière que "->", mais insère le résultat de la réécriture de chaque étage en dernière position. Par exemple:
(->>