any LT code
// swapping two words ((lambda (:a :b) :b :a) Hello World) // the Towers of Hanoi ((lambda (:n :from :to :via) (((lambda (:g) (:g :g)) (lambda (:g :n :from :to :via) (((lambda (:a :b :c) (:a :b :c)) ((lambda (:c) (:c (lambda (:a :b) (lambda (:a :b) :b)))) :n) (lambda (:g :n :from :to :via) ) (lambda (:g :n :from :to :via) (:g :g ((lambda (:c) (:c (lambda (:a :b) :b))) :n) :from :via :to) (br) move ((lambda (:c) (:c (lambda (:a :b) :a))) :n) from tower :from to tower :to (:g :g ((lambda (:c) (:c (lambda (:a :b) :b))) :n) :via :to :from) )) :g :n :from :to :via))) :n :from :to :via)) ((lambda (:a :b :c) (:c :a :b)) Disk_1 ((lambda (:a :b :c) (:c :a :b)) Disk_2 ((lambda (:a :b :c) (:c :a :b)) Disk_3 ((lambda (:a :b :c) (:c :a :b)) Disk_4 (lambda (:a) (lambda (:a :b) :a)))))) A B C)
(div (@ style="font:italic 3.0em papyrus; text-align:center; color:#f00;") hello brave new world) It is said that the father of LISP, John McCarthy, lamented the W3C's choice of SGML as the basis for HTML : « (i An environment where the markup, styling and scripting is all s-expression based would be nice.) » The (a (@ href="?view=start")lambdaway project) could be an answer, small and simple. '(sqrt (+ (* 3 3) (* 4 4))) -> (sqrt (+ (* 3 3) (* 4 4))) '(def hypo (lambda (:a :b) (sqrt (+ (* :a :a) (* :b :b))))) -> (def hypo (lambda (:a :b) (sqrt (+ (* :a :a) (* :b :b))))) '(hypo 3 4) -> (hypo 3 4) '(hypo 1 1) -> (hypo 1 1) '(def fac (lambda (:n) (if (< :n 1) then 1 else (long_mult :n (fac (- :n 1)))))) -> (def fac (lambda (:n) (if (< :n 1) then 1 else (long_mult :n (fac (- :n 1)))))) '(fac 50) -> (fac 50) '(def hanoi (lambda (:n :from :to :via) (if (= :n 0) then else (hanoi (- :n 1) :from :via :to) (br)move Disk_:n from tower :from to tower :to (hanoi (- :n 1) :from :via :to)))) -> (def hanoi (lambda (:n :from :to :via) (if (= :n 0) then else (hanoi (- :n 1) :from :via :to) (br)move Disk_:n from tower :from to tower :to (hanoi (- :n 1) :from :via :to)))) '(hanoi 4 A B C) -> (hanoi 4 A B C)