#binomial coefficient
9 messages · Page 1 of 1 (latest)
I was able to solve the problem on my own.
I had some very silly errors in my code.
You can see the results here:
https://typst.app/project/rrg3c5ZgECKWyC5BZVzLvk
It will be included as a native math function in the next release. It is already available if you use the github version (without the webapp)
As a side note, the keyword “return” is not necessary unless you’re returning early
By default, every single line in a code block (which includes functions) is joined
So if you write like
let a = {
[a]
[b]
[c]
}
a Will be [abc]
However lines with an assignment (including “let …”) don’t return anything and are ignored for that purpose
Just in case you’re not aware of this
I was learning how code blocks work.
But I guess no I understand.
Thanks!