nate
Member since Jul 16, 2011
- Profile: /members/8635-nate.htm
- Comments: 1
Recent Blog Comments By nate
-
Seven Languages In Seven Weeks: Io - Day 2
Posted on Jul 16, 2011 at 12:19 AM
Using the list method (as suggested by secondplanet), when you set numbers to (1,1) your sequence is off by one place. For example, fib(2) returns 2, not 1. Here's a suggestion: fib := method (nth_place, numbers := list(0,1) while(numbers size <= nth_place, numbers append(numbers at(-1... read more »