top | item 35250474

(no title)

fictorial | 2 years ago

Where did the code example for Fibonacci go in the typeset output?

discuss

order

Falcondor|2 years ago

I think, if I am reading it correctly, that was not a code example, that was actual code. count and nums are variables being defined, and fib is a function. Then the function is being called to build the table (you can see str(fib(n)) in the second to last line)

laurmaedje|2 years ago

It's not a code example. It's Typst code that is used to calculate the fibonacci numbers that are displayed in the table.

fictorial|2 years ago

I see, thanks! That's pretty neat.