Hacker News new | ask | show | jobs
by fictorial 1180 days ago
Where did the code example for Fibonacci go in the typeset output?
2 comments

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)
It's not a code example. It's Typst code that is used to calculate the fibonacci numbers that are displayed in the table.
I see, thanks! That's pretty neat.