Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.27 KB

readme.org

File metadata and controls

38 lines (32 loc) · 1.27 KB

draw-tree

draw-tree.el

Draw tree structure of cons cells.

Ported to Emacs Lisp from Nils M Holm’s Scheme 9 from Empty Space’s Function Library (http://www.t3x.org/s9fes/draw-tree.scm.html) and its Common Lisp port written by CBaggers (https://github.com/cbaggers/draw-cons-tree).

Giulio Pietroiusti, 2022 Placed in the Public Domain.

Example:

  (draw-tree '((a) (b . c) (d e))) ;; ==> 
;; "
;; [o|o]---[o|o]---[o|/]
;;  |       |       |      
;; [o|/]    |      [o|o]---[o|/]
;;  |       |       |       |      
;;  a       |       d       e      
;;          |      
;;         [o|o]--- c      
;;          |      
;;          b      
;; "

See also: