In stanza, I would like to loop two times over a sequence.
I have something like that:
public defn function1-and-function2 (s:Seqable<Double>) -> [Double, Double]:
[function1(s), function2(s)]
with
public defn function1 (s:Seqable<Double>) -> Double
and
public defn function2 (s:Seqable<Shape>) -> Double
In both function1
and function2
, I am looping on the sequence. But when reaching function2
, the sequence is empty.