Currently viewing the tag: "fibonacci"
Having just begun my descent down the rabbit hole, into a Haskell land of hiding grins and late late hatters, I thought I’d try journaling what I discover on the way, so that maybe those who are merely curious could play the part of language voyeur.
… This function starts out the list with 1, followed by 1, then it starts adding two lists together — provided by the same function before it’s even done!
…I kept thinking it was something I had to return as I went along, not passed down to each deeper level — and then returned after I’d added to it.
…If that first character is a colon, return a list with the current accumulator as the head, and recurse to process the rest of the string (and so on).
