Module | Lisp |
In: |
lib/facet/lisp-format.rb
lib/facet/lisp.rb |
This module provides Lisp-like functional notation. With this module it almost possibel to write real Lisp code in Ruby.
It’s hardly believable, but the following IS valid ruby code:
(def accumulate (fun, x, list) (if (null? list) x else (accumulate fun, (fun.call x, (car list)), (cdr list)) end) end)
A real programmer can write LISP in any language… ;)
VERSION | = | '1.1.0' |