Skip to content

Instantly share code, notes, and snippets.

@Metaxal
Created October 1, 2013 10:00
Show Gist options
  • Save Metaxal/6776253 to your computer and use it in GitHub Desktop.
Save Metaxal/6776253 to your computer and use it in GitHub Desktop.
Draw a hierarchy tree like a folder structure
#lang slideshow
(require bazaar/slideshow/slideshow-tree)
(define t1 '(a (b1 (c1 d1 d2)
(c2 d3 d4))
(b2 (c3 d5)
c4)))
(draw-tree-top-left-right
(tree-map t1 (λ(x)(t (symbol->string x))))
10 10)
@Metaxal
Copy link
Author

Metaxal commented Oct 1, 2013

Draws a slideshow picture like (but with real lines):

a
|-b1
|  |-c1
|  |  |-d1
|  |  Ld2
|  Lc2
|    |-d3
|    Ld4
Lb2
  |-c3
  |  Ld5
  Lc4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment