This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-05
Channels
- # beginners (12)
- # calva (18)
- # cider (1)
- # cljs-dev (29)
- # clojure (97)
- # clojure-uk (18)
- # clojurescript (10)
- # clojureverse-ops (2)
- # cursive (7)
- # emacs (10)
- # fulcro (42)
- # graphql (36)
- # joker (1)
- # juxt (28)
- # mount (2)
- # other-languages (2)
- # pathom (1)
- # portkey (3)
- # re-frame (50)
- # shadow-cljs (42)
- # spacemacs (4)
- # sql (6)
- # yada (6)
from docs to < and <=
; <= Returns non-nil if nums are in monotonically increasing order, otherwise false.
; < Returns non-nil if nums are in monotonically non-decreasing order, otherwise false.
Is there any difference between increasing
and non-decreasing
? Looks like synonyms to me.increasing has to increase and non-decreasing does not in the case of it being the same number (so [1 1 1 1 2 3 4]
is non decreasing but it isn’t always increasing)
@hobosarefriends oh now i understand the meaning
@nicholas.jaunsen a vector pair of key and value
why destructuring has :as
if you can already access the full arg?
(let [range-vec (vec (range 10))
[a b c & more :as all] range-vec]
(println (= all range-vec)))
and they are equal.@twaima I think because it lets you consolidate lines like this:
(let [[a b c & more :as range-vec] (vec (range 10))]
(println (= all range-vec)))
👍 4
✔️ 4