Skip to content

Instantly share code, notes, and snippets.

@supki
Last active December 14, 2015 11:59
Show Gist options
  • Select an option

  • Save supki/5082879 to your computer and use it in GitHub Desktop.

Select an option

Save supki/5082879 to your computer and use it in GitHub Desktop.
Always easy to read.
def f(a, b, c):
return a ** (b ** c)
def g(a, b):
return (b, a)
>>> f(2, *g(2,3))
512
>>> f(2, *g(3,2))
256
def f a, b, c
a ** (b ** c)
end
def g *xs
xs.reverse
end
irb(main):002:0> f(2, *g(2, 3))
=> 512
irb(main):003:0> f(2, *g(3, 2))
=> 256
@dmalikov
Copy link

dmalikov commented Mar 4, 2013

wat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment