From 8a136eaa444f4569fced95fb175ca41b1e8e9b94 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Tue, 17 Nov 2020 20:43:37 +0300 Subject: feature: major overhaul of documentation, and some housekeeping - remove(macros): `fn+` as it seem impractical, and `fn*` can be used instead - rename(def, defonce): `:dynamic` to `:mutable` as dynamic implies dynamic scoping which is not feature of Lua. - doc: generated documentation for macro module. --- doc/cljlib.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'doc/cljlib.md') diff --git a/doc/cljlib.md b/doc/cljlib.md index 34e764e..1bf82ac 100644 --- a/doc/cljlib.md +++ b/doc/cljlib.md @@ -17,7 +17,7 @@ This example is mapping an anonymous `function` over a table, producing new table and concatenating it with `" "`. However this library also provides Fennel-specific set of -[macros](./cljlib-macros.md), that provides additional facilites like +[macros](./cljlib-macros.md), that provides additional facilities like `fn*` or `defmulti` which extend the language allowing writing code that looks and works mostly like Clojure. @@ -31,7 +31,7 @@ brackets). Functions, which signatures look like `(foo ([x]) ([x y]) ([x y & zs]))`, it is a multi-arity function, which accepts either one, two, or three-or-more arguments. Each `([...])` represents different body -of a function which is choosed by checking amount of arguments passed +of a function which is chosen by checking amount of arguments passed to the function. See [Clojure's doc section on multi-arity functions](https://clojure.org/guides/learn/functions#_multi_arity_functions). @@ -128,7 +128,7 @@ Function signature: ``` Apply `f` to the argument list formed by prepending intervening -arguments to `args`, adn `f` must support variadic amount of +arguments to `args`, and `f` must support variadic amount of arguments. ### Examples @@ -756,8 +756,6 @@ Reduce sequence of numbers with [`add`](#add) ;; => 20 ``` - - ## `reduce-kv` Function signature: -- cgit v1.2.3