Clojurians
#cljs-dev
<
2018-12-19
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

borkdude23:12:42

This makes sense: (counted? (range 1 1000)) But it may be better in this case to return false? (counted? (range)) Also: (counted? (repeat 10 10)) could return true instead of false

mfikes23:12:55

Yeah, check out what Clojure does for counted? on range values.

mfikes23:12:25

repeat OTOH returns something that is currently not O(1) for count, but it could easily do that (and probably so could Clojure)

mfikes23:12:54

repeat should probably be done in Clojure first, IMHO. See the concerns raised surrounding https://dev.clojure.org/jira/browse/CLJ-1690, which while not exactly the same, are similar