Skip to content

Commit

Permalink
added kind/fn examples to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed May 5, 2024
1 parent 20e490d commit 5105921
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions notebooks/index.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1388,11 +1388,22 @@ Plot.plot({
(kind/fn
[+ 1 2])

(kind/fn
{:kindly/f (fn [{:keys [x y]}]
(+ x y))
:x 1
:y 2})

(kind/fn
[tc/dataset
{:x (range 3)
:y (repeatedly 3 rand)}])

(kind/fn
{:kindly/f tc/dataset
:x (range 3)
:y (repeatedly 3 rand)})

;; ## Delays

;; Clojure Delays are a common way to define computations that do not take place immediately. The computation takes place when dereferencing the value for the first time.
Expand Down

0 comments on commit 5105921

Please sign in to comment.