More features, more fixes
One of the defining features of Japt is its lack of arity, so I've been trying to give more functions dual purposes depending on how many arguments they are given. You can see that here with A.c(), N.n(), and D.n().
- Added feature:
K
now returnsnew Date()
by default - Added feature: implicit U if first char is any of
*/%^|&<=>?
- Added shortcuts:
Ä
(+1
) and×
(r*1
) - Added function: A.ñ(f) sorts
A
as if each value has been run throughf
- Added function: N.h(n=1) performs
N.toPrecision(n)
- Added function: N.x(n=0) performs
N.toFixed(n)
- Added function: D.n() casts
D
to a number, D.n(n) does the same as N.n(n) - Added function: F.c(f) is like F.a(f), but with all integers: 0, -1, 1, -2, 2, -3, 3...
- Modified function: A.c(x) concatenates
x
toA
- Modified function: N.n(n=0) returns
n-N
- Bug fix: A.n() always sorts lexicographically by default
- Bug fix: auto-functions don't work with A.æ()
- Bug fix: auto-functions don't work with N.o()
- Bug fix: textboxes are emptied if URL contains no
code=
orinput=