7 comments

[ 2.7 ms ] story [ 28.5 ms ] thread
alas this falls short

of the state of the art in

quality haiku

Now someone make one for Hacker news. What was that library that decomps words into syllables again..
What's that library

For splitting up words into

Syllables again?

Im wondering if

this was just a webscraper

or perhaps ai

Several from that bot are great UX haiku.
The first mastodon

page I really wanted

to follow

Could a haiku be written for Lisp?

Wow, yes; turns out we can write a working map function in TXR Lisp as a haiku:

  (defun map (f x)
    (if (null x)
      nil 
      (cons [f (car x)] (map f (cdr x)))))
I.e.

  (defun map (f x)
    (if (null x) nil (cons [f (car
                                   x)] (map f (cdr x)))))

i.e.

  de-fun map eff ex
  if null ex nil cons f car
  ex map eff k'dr ex

Comprehensive regression test suite:

  4> [map succ nil]
  nil
  5> [map succ '(1 2 3)]
  (2 3 4)