Skip to content

2014-3: Tell a Fib

Write a dfn that takes an integer right argument and returns that number of terms in the Fibonacci sequence.

Examples:

      (your_function) 10
1 1 2 3 5 8 13 21 34 55
      (your_function) 1
1
      (your_function) 0 ⍝ should return an empty vector
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub