JanetDocsPlaygroundI'm feeling luckyGitHub sign in

eachk



    macro
    boot.janet on line 513, 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  
pepePlayground
(eachk k {:a "a val" :b "b val" :c "c val"} (print k))
# prints c
# prints a
# prints b
pepePlayground