lt2   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/algebraic_data_types.xtm

Implementation

;; list test 2
(bind-func lt2
  (lambda ()
    (let ((l1 (Cons 1 (Cons 2 (Nil))))
          (l2 (fmap (lambda (x) (* x x)) l1)))
      (println 'l2 '= l2))))


Back to Index

Similar Entries

  • lt2    scheme