Skip to content

Instantly share code, notes, and snippets.

@colomon
Created December 29, 2010 19:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save colomon/758929 to your computer and use it in GitHub Desktop.
> sub tail(@a) { my $a-list = @a.iterator.list; $a-list.shift; $a-list; }
tail
> my @fib := 0, 1, (@fib Z+ tail(@fib)); 1;
1
> say @fib[^10].perl
(0, 1, Any, Any, Any, Any, Any, Any, Any, Any)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment