clojure-denver

vncz 2023-07-20T15:58:25.469009Z

How did the meeting go?

winkywooster 2023-07-20T16:03:24.647849Z

iโ€™d say it was a great turnout, great discussion, and everything just worked in the av department.

vncz 2023-07-20T16:06:47.095239Z

Super happy to learn that. Wish I could have been around!

winkywooster 2023-07-20T16:49:32.694759Z

also big shoutout to @danielglauser for being the driving force to get this going again and speaking, and to @astro for speaking too.

๐Ÿ‘ 1
๐Ÿ’ฏ 1
โž• 1
๐Ÿ––๐Ÿป 1
๐ŸŽ‰ 1
Sam Ritchie 2023-07-20T22:00:28.504889Z

Sam Ritchie 2023-07-20T22:00:39.384849Z

works fine with [0 1] initial segment!

(def fib (lazy-cat [0 1] (map +' fib (rest fib))))

danielglauser 2023-07-20T23:07:55.388009Z

+' is new to me. Reading the docstring and the code I can't say I understand the difference between + and +'. Can you please explain?

danielglauser 2023-07-20T23:10:13.174449Z

RTFM: https://clojuredocs.org/clojure.core/+'

danielglauser 2023-07-20T23:13:26.991299Z

+' will handle auto-promotion of the type if the size grows.

Sam Ritchie 2023-07-20T22:01:01.263299Z

and nice and quick too, which makes sense since weโ€™re just streaming through the sequence

Sam Ritchie 2023-07-20T22:01:22.479349Z

it was the initial segment with THREE elements that caused issues here

Sam Ritchie 2023-07-20T22:01:46.244349Z

(this was my example of something mind-bending, a self-referencing definition of a lazy sequenceโ€ฆ

๐Ÿง  1
danielglauser 2023-07-20T23:02:58.168009Z

Thanks for correcting this before I got it tattooed on my arm.

๐ŸŽ‰ 1