From cc82dd57c87e19439f851c2bfd66834f70276bb8 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sat, 17 Jul 2021 17:49:16 +0300 Subject: 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 --- doc/cljlib.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/cljlib.md') 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))) -- cgit v1.2.3