Open genmeblog opened 1 year ago
After discussion with @zampino on Slack
Any forms returning lazy sequences wrapped in the clerk/example
(applies als to clerk/table
and possibly any other container) realized in the order. In Case 1, lazy sequences are realized after setSeed
is called.
IMHO the behaviour should be the same as with top level forms. Ie. all nested lazy sequences should be realized as they appear.
Temporary solution is to force realization, ie. wrapping all lazy seq forms into doall
or vec
.
Found working example finally. It appears when forms return a sequence. More details in the code below.
With deps:
io.github.nextjournal/clerk {:mvn/version "0.13.842"}