Skip to content

Instantly share code, notes, and snippets.

@youz
Created October 12, 2010 14:39
Show Gist options
  • Save youz/622267 to your computer and use it in GitHub Desktop.
Save youz/622267 to your computer and use it in GitHub Desktop.
parens language (in Arc)
;;; ref. http://blog.livedoor.jp/dankogai/archives/51524639.html
(= p[(rfn r(c f)(if c(r cdr.c(f:p c.0))f))_[(_:fn(x)(fn(y)[x._ y._]))[fn(y)_]]])
(((p'(#0=(#1=((())))#2=(#0#(#1#(#0#))#0#)(())#4=(#0##2#(()))#4##4#)) [+ _ 1]) 0)
; -> 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment