Skip to content

Instantly share code, notes, and snippets.

@tetsu-miyagawa
Created November 16, 2015 23:12
Show Gist options
  • Save tetsu-miyagawa/f0b028162240213ec454 to your computer and use it in GitHub Desktop.
Save tetsu-miyagawa/f0b028162240213ec454 to your computer and use it in GitHub Desktop.
CTMCP Section 2.9 Exercise 2 (1)
local MulByN A B in
local N in
N=3
proc {MulByN X ?Y}
Y=N*X
end
end
A=4
{Browse N}
{MulByN A B}
{Browse B}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment