News for hackers. Stuff that matters.
Re:Why it’s hard for programmers to write a program to flatt... by ScottBurson on Friday February 24, 2017 @02:16PM (#13726717)
It's trivial, of course, in Common Lisp:

  (defun flatten (x)
    (if (listp x)
        (reduce #'append (mapcar #'flatten x))
      (list x)))

There are no comments on this comment yet.