3 ms·
I think Q/KDB+ is probably the closest to what you're asking for - mostly English words with a direct mapping to the underlying array primitives. Regarding J s
by hoosieree 9y ago
I think Q/KDB+ is probably the closest to what you're asking for - mostly English words with a direct mapping to the underlying array primitives.
Regarding J specificaly: Some words (sort, inverse, each, every) are in the standard library and loaded by default. What have you tried?
You can define your own cover words for the built-ins (here I've added a cap ([:) to signal a domain error if the word is used with 2 arguments when it expects 1, and vice versa):
times =: [: : *
signum =: * : [:
sum =: +/ : [:
count =: # : [:
J programmers don't do this for the same reason JavaScript programmers don't do this:
var ArithmeticOperationsLibraryWhichIsIncludedByDefault = Math;
var TheLibraryRegardingTheBrowserWindow = window;