Skip to content

Instantly share code, notes, and snippets.

@scizzorz
Created August 24, 2017 19:36
Show Gist options
  • Save scizzorz/54f9469c504885bb85d4ea885d9c5dbf to your computer and use it in GitHub Desktop.
Save scizzorz/54f9469c504885bb85d4ea885d9c5dbf to your computer and use it in GitHub Desktop.
return func(end)
inner = func()
if i == end
return
save [i, end]
i = i + 1
(~inner).i = 0
(~inner).end = end
return inner
square = table
square.new = func(self, w, h)
return table {w=w, h=h} :: self
square.area = func(self)
return self.w * self.h
return square
square = import("square.rnc")
x = square:new(3, 4)
print(x:area())
range = import("range.rnc")
for [i, max] in range(5)
print(i $ " / " $ max)
[a, b, c] = [1, 2, true]
print(a)
print(b)
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment