« first day (1299 days earlier)
← previous day
next day →
last day (236 days later) »
TKirishima
4:02 PM
is there any <=>/three-way operator in ngn/k ?
2 hours later…
coltim
6:32 PM
@TKirishima what do you mean by "three-way operator"?
TKirishima
Something like <=> in Ruby or PHP
a <=> b :=
if a < b then return -1
if a = b then return 0
if a > b then return 1
if a and b are not comparable then return nil
coltim
you could adapt the classic "signum" idiom
{(x>0)-(x<0)}
I don't think there's any built-in that does that
TKirishima
@coltim (x>0)-x<0 also work.
4 hours later…
chrispsn
11:03 PM
has a binary search vibe to it
doug
11:31 PM
0 1'x works for integers.
« first day (1299 days earlier)
← previous day
next day →
last day (236 days later) »
all rooms
Transcript for
Sep
26
Sep '22
27
Sep
28
the k tree
app.element.io/#/room/#ngnk:matrix.org
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile