by emersonrsantos · 8y ago · 0 comments
: fib 2dup + ;
2dup word duplicates n and n-1 elements and put it on the top of the stack.+ word takes n and n-1 elements from the stack and sum them. The result goes on top of the stack.
Just start with 1 and 1 at the top of stack.
(If you like languages with a very high density of functionality to symbol count, you should look at APL and its successor J)