4 ms·
The examples for the math functions (https://elv.sh/ref/math.html https://elv.sh/ref/math.html) include 1/2 as an input so infix math appears to be there (I'm u
by mst 2y ago
The examples for the math functions (https://elv.sh/ref/math.html https://elv.sh/ref/math.html) include 1/2 as an input so infix math appears to be there (I'm undercaffeinated so haven't found the correct doc page to describe it, only proof of its existence, but y'know, it's a start ;)
- xiaq 2y agoActually 1/2 is there because Elvish supports rational numbers, unfortunately there's no infix math. (Elvish supports arbitrary-precision integers and rationals.)