Fork me on GitHub
#squint
<
2022-10-17
>
mauricio.szabo17:10:01

Is doseq not implemented yet?

borkdude17:10:26

Maybe not fully but this works:

$ ./node_cli.js -e '(doseq [i [1 2 3]] (prn i))'
1
2
3

borkdude17:10:48

$ ./node_cli.js --show -e '(doseq [i [1 2 3]] (prn i))'
import { prn, count } from 'squint-cljs/core.js'

mauricio.szabo20:10:11

Oh, so it's doseq with range that's not implemented? Because this code does nothing:

(doseq [n (range 3)] (prn n))

borkdude20:10:34

Thanks, this is a bug with the iterable stuff. This works:

$ ./node_cli.js -e "(doseq [n (vec (range 3))] (prn n))"
0
1
2

borkdude20:10:50

I'll file an issue for this