JanetDocsI'm feeling luckyGithub sign in

eachk



    macro
    boot.janet on line 501, column 1

    (eachk x ds & body)
    
    Loop over each key in ds. Returns nil.


2 examplesSign in to add an example
Loading...
(eachk k [1 2 3] (print k))
# prints 0
# prints 1
# prints 2
# for indexed collections indices are printed  
pepe
(eachk k {:a "a val" :b "b val" :c "c val"} (print k))
# prints c
# prints a
# prints b
pepe