Fork me on GitHub
#hoplon
<
2017-07-17
>
cycle33711:07:45

I'm trying to loop through a sequence stored in a javelin cell

cycle33711:07:07

i've defined an element that's a table and another element that's a single-row

cycle33711:07:29

and carrying a cell as a key down to where I want to loop-tpl :bindings [x in xs] (single-row x)

cycle33711:07:51

xhr is succesfull, I can see the objects

cycle33711:07:09

but i get a Error: [object Object] is not ISeqable

cycle33711:07:48

what am I doing wrong ?

dm312:07:52

your result is probably a cell

dm312:07:11

(for-tpl [x xs] (single-row x))

cycle33712:07:44

I think it is too, but shouldn't I pass it down the line to single-row function using key-value ?

cycle33712:07:21

I'm sort of confused when to pass it as first argument and when as child like in your example

dm312:07:37

depends on how single-row is defined…

dm312:07:27

if you have a defelem, it accepts a map of attrs first and a vararg of child elems