some function applied with ratio never returns
can some on开发者_开发百科e please explain why
(some #(= 3 %) (range))
returns true but
(some #(= 4/3 %) (range))
never returns?
(range)
produces an infinite sequence, so it'll just keep looking until it finds a natural number which is equal to 4/3, which isn't terribly likely.
精彩评论