This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-24
Channels
- # announcements (2)
- # beginners (131)
- # calva (4)
- # cider (29)
- # cljs-dev (18)
- # cljsrn (8)
- # clojure (61)
- # clojure-czech (1)
- # clojure-europe (5)
- # clojure-italy (14)
- # clojure-nl (6)
- # clojure-switzerland (2)
- # clojure-uk (125)
- # clojuredesign-podcast (10)
- # clojurescript (25)
- # clojutre (15)
- # clr (4)
- # code-reviews (4)
- # data-science (1)
- # emacs (1)
- # events (2)
- # fulcro (12)
- # graalvm (4)
- # jobs (2)
- # keechma (1)
- # off-topic (1)
- # pathom (18)
- # re-frame (3)
- # reagent (7)
- # shadow-cljs (106)
- # spacemacs (33)
- # sql (12)
- # xtdb (5)
Regarding nil safe functions, @neumann, I believe you said that nth
is not nil safe, but (nth nil 0)
is nil. Maybe you thought about using function application on vectors? (x 0)
isn't nil safe, because the function would be nil.
@U8J6W2SC8 you are absolutely right that passing a nil for the collection puns correctly
@U8J6W2SC8 Yeah, I wasn't super clear on that point, was I? I think my real issue with nth
is that the collection isn't at the end like the typical sequence functions. It's more like the map-related functions that put the collection second.