lib/vm/pfunctions.rb in p-lang-0.3.0 vs lib/vm/pfunctions.rb in p-lang-0.3.1
- old
+ new
@@ -38,10 +38,10 @@
lamb.form << param
end
obj_params << param
end
- PObject.new(:lambda, [lamb])
+ PObject.new(:lambda, [lamb, PObject.new(:empty, [])])
end
def object(expr)
PLang::Parser::SyntaxAnalyser.new(expr).parse[0]
end