razetime / ngn-k-tutorial

An ngn/k tutorial.
https://razetime.github.io/ngn-k-tutorial/
195 stars 22 forks source link

Incorrect definition of `ceil` in 13-a-prelude.md #26

Closed jordancurve closed 7 months ago

jordancurve commented 7 months ago

13-a-prelude.md says:

You can simply delete this, and remember 1+_ as ceil, cause that removes the need for a word.

But ceil and 1+_ are different. At https://ngn.bitbucket.io/k/#r, ceil 4 returns 4, while 1+_4 returns 5. Transcript:

 ceil:-_-:
 ceil 4
4
 1+_4
5
razetime commented 7 months ago

right, that is only correct for positive integers. I will fix this.