return page history
α-wwwiki
::
history/flat_tree/20130727-141457.txt
editor : alpha [82.254.3.71] 2013/07/27 14:14:57 {div {@ style="display:none;"} {define z () return 'span {@ style="color:blue;font-size:0.5em;"}' } } _h1 flat tree _p How to visualize a tree structure ? {pre (+ 1 2) ---------------------- (+ {{z} 1:}1 {{z} 2:}2 ) ---------------------- + 1 2 ====================== (+ 1 (* 2 3) 4) ---------------------- (+ {{z} 1:}1 {{z} 2:}(* {{z} 1:}2 {{z} 2:}3 ) {{z} 3:}4 ) ---------------------- + 1 * 4 2 3 ====================== (sqrt (+ (* 3 3) (* 4 4))) ---------------------- (sqrt {{z} 1:}(+ {{z} 1:}(* {{z} 1:}3 {{z} 2:}3 ) {{z} 2:}(* {{z} 1:}4 {{z} 2:}4 ) ) ) ---------------------- sqrt + * * 3 3 4 4 ====================== (define square (lambda x (* x x))) ---------------------- (define {{z} 1:}square {{z} 2:}(lambda {{z} 1:}x {{z} 2:}(* {{z} 1:}x {{z} 2:}x ) ) ) ---------------------- define square lambda x * x x }