So 2016. Much BEAM. Very polyglot.

Eric Bailey

Written on 1 January, 2016
Updated on 18 December, 2023
Tags: , , , ,

This is why I love Lisp Flavoured Erlang.

(progn
  (include-lib "clj/include/compose.lfe") ; Clojure threading macros
  (-> (lodox-parse:docs #"lodox")         ; lodox docs map, generated by lodox
      (mref 'modules)                     ; lodox modules (Maclisp)
      (cadddr)                            ; 4th module =:= lodox-parse (CL)
      (mref 'exports)                     ; lodox-parse exports (Maclisp)
      (hd)                                ; first function =:= docs/1 (Erlang)
      (mref 'doc)                         ; docstring of docs/1
      (list_to_binary)                    ; string->binary
      (Elixir.Markdown:to_html            ; Elixir app wrapping C lib
       '[#(fenced_code true)])))          ; as in GitHub Flavored Markdown

Gott nytt år! https://en.wiktionary.org/wiki/gott_nytt_%C3%A5r

References