--[[ LuaMacro 2 macros for Lazy List Module Functional Programming Example in Lua H. Conrad Cunningham, Professor Computer and Information Science University of Mississippi Developed for CSci 658, Software Language Engineering, Fall 2013 1234567890123456789012345678901234567890123456789012345678901234567890 2013-11-03: Designed for use with Lazy List Module To use this, the source file should include the following statement: require_ 'lazyListMacros' --]] -- Load LuaMacro 2 module local macro = require "macro" -- Define LuaMacro for lazy Cons; execute with "luam" command macro.define 'Cons(h,t) (eCons(h,memoize(function() return t end)))'