codereport / jsource

J Language Source Code. Livestream links ⬇️
https://www.youtube.com/playlist?list=PLVFrD1dmDdvfVhYLU_iKkV67X9XqCJLWe
Other
38 stars 20 forks source link

Refactor `num` #86

Open codereport opened 3 years ago

codereport commented 3 years ago

In jsrc/verbs/monadic/tally.cpp:

[[nodiscard]] auto
refactorme_num(int64_t n) {
    return reinterpret_cast<array>(Bnum + 2 + n - NUMMIN);
}
herwinw commented 3 years ago

There is some analysis of the current code in #87, which describes num as well.