Skip to content

Commit

Permalink
pure, join docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
leonoel committed Jan 26, 2024
1 parent 90d729e commit 772dc49
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/hyperfiddle/electric_de.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@
[hyperfiddle.electric-local-def-de :as l])
#?(:cljs (:require-macros hyperfiddle.electric-de)))

(defmacro join [flow] `(::lang/join ~flow))
(defmacro ctor [expr] `(::lang/ctor ~expr))
(defmacro call [ctor] `(::lang/call ~ctor))
(defmacro pure [v] `(::lang/pure ~v))

(defmacro pure "
Syntax :
```clojure
(pure table)
```
Returns the incremental sequence describing `table`.
" [expr] `(::lang/pure ~expr))

(defmacro join "
Syntax :
```clojure
(join incseq)
```
Returns the successive states of items described by `incseq`.
" [flow] `(::lang/join ~flow))

(defmacro fn [bs & body]
`(ctor
Expand Down

0 comments on commit 772dc49

Please sign in to comment.