Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created December 22, 2010 03:18
Show Gist options
  • Save fujimura/751040 to your computer and use it in GitHub Desktop.
Save fujimura/751040 to your computer and use it in GitHub Desktop.
seven-languages-in-seven-weeks_io_day-2_3.io
List sumr := method(if((first type == "List"),
first sumr + rest sumr,
if((size == 0),
0,
if((size == 1),
first,
first + rest sumr
))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment