Here's an example of logical comparisons and arithmetic in rc without them as first-class features, from a script I use to generate passwords

How palatable would this be to you?


Crazy idea, what about an `next` builtin?

next i # i == 1
next i 5 # i == 6
next i -2 # i == 4

next x # x == 0x10

next s # s == thf

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.