Sha256: 77fc0f6400eea8d9ffbbe30b8017dbcd8a2166d1d1fa991b68069b3129828488
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module PLang module IO def IO.def_pfunctions(env) env.add_var(:print, IO.pprint) end def IO.pprint lamb = Proc.new do |values| values.each do |value| puts value.to_s end end lamb.form = [] [lamb] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
p-lang-0.0.2 | lib/vm/std/io.rb |
p-lang-0.0.1 | lib/vm/std/io.rb |