by toastking · 7y ago · 0 comments
a.map(f)
is basically† just: f[a]
and: a.map(x => m[x])
is still just: m[a]
†: Rank notwithstanding. If that bothers you that f might take an atom, pretend I said f@/:a and m@/:a instead. x: 10 ? `a`b`c
x
`a`c`c`c`c`a`b`a`a`c
=x
a|0 5 7 8
b|,6
c|1 2 3 4 9input[<{...compute weight of element x...}'input]