What is the difference between :while and :when in clojure?

后端 未结 3 587
闹比i
闹比i 2021-02-07 08:34

I\'m studying clojure but not quite clear on the difference between the :while and :when test:

=> (for [x [1 2 3] y [1 2 3] :while          


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-07 09:09

    Look at the last example here: http://clojuredocs.org/clojure_core/clojure.core/for#example_913

提交回复
热议问题