summaryrefslogtreecommitdiff
path: root/doc/cljlib.md
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-07-17 17:49:16 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-07-17 18:08:02 +0300
commitcc82dd57c87e19439f851c2bfd66834f70276bb8 (patch)
tree6aafcb943cd9ef3e3b47061f4d917f4d7ec0ab5a /doc/cljlib.md
parente8351c4a47ea0472151b3f5a5ac06a70f86f0d02 (diff)
fix: style changes, and documentation fixes
- provide defn as an alias to fn* and change fn* to defn in all files - fix doc for eq function - fix and generate doc for loop macro
Diffstat (limited to 'doc/cljlib.md')
-rw-r--r--doc/cljlib.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/cljlib.md b/doc/cljlib.md
index 8f6df8b..9d23746 100644
--- a/doc/cljlib.md
+++ b/doc/cljlib.md
@@ -1,4 +1,4 @@
-# Cljlib (0.5.3)
+# Cljlib (v0.5.3)
Fennel-cljlib - functions from Clojure's core.clj implemented on top
of Fennel.
@@ -18,10 +18,10 @@ producing new table and concatenating it with `" "`.
However this library also provides Fennel-specific set of
[macros](./macros.md), that provides additional facilities like
-`fn*` or `defmulti` which extend the language allowing writing code
+`defn` or `defmulti` which extend the language allowing writing code
that looks and works mostly like Clojure.
-Each function in this library is created with `fn*`, which is a
+Each function in this library is created with `defn`, which is a
special macros for creating multi-arity functions. So when you see
function signature like `(foo [x])`, this means that this is function
`foo`, that accepts exactly one argument `x`. In contrary, functions
@@ -844,7 +844,7 @@ Map [`mul`](#mul) over two tables:
Basic `zipmap` implementation:
``` fennel
-(import-macros {: into} :macros)
+(import-macros {: into} :init-macros)
(fn zipmap [keys vals]
(into {} (mapv vector keys vals)))