You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one new inverse would suffice for the majority of my use cases, but you may also consider making inverses for the verb's affiliates.
That is, you could create the following mappings (or a subset thereof):
= &m`(,:&n) } ^:_1 ↔ = &n`(,:&m) } NB. A
~:&m`(n&,:) } ^:_1 ↔ ~:&n`(m&,:) } NB. B
m& =`(,:&n) } ^:_1 ↔ n& =`(,:&m) } NB. C
m&~:`(n&,:) } ^:_1 ↔ n&~:`(m&,:) } NB. D
= &m`(n&,:) } ^:_1 ↔ = &n`(m&,:) } NB. E
~:&m`(,:&n) } ^:_1 ↔ ~:&m`(,:&m) } NB. F
m& =`(n&,:) } ^:_1 ↔ n& =`(m&,:) } NB. G
m&~:`(,:&n) } ^:_1 ↔ n&~:`(,:&m) } NB. H
But I'm not convinced these extra inverses provide much value:
Mappings E-H are going to see less use (it can be useful to say "replace everything that's not a FOO with a BAR, but it's not so useful to invert that function).
The form m&= is redundant with =&m. It's not so hard to write the latter if you want your function invertible.
A similar sentiment applies to ~:&m`(n&,:) vs =&m`(,:&n) .
-- Dan Bron <2008-02-01T23:45:30Z>
The text was updated successfully, but these errors were encountered:
I request that the idiomatic verb
=&m`(,:&n) }
for scalarm
andn,
be invertible. The inverse is=&n`(,:&m) }
.For example:
could be rewritten more succinctly as:
This one new inverse would suffice for the majority of my use cases, but you may also consider making inverses for the verb's affiliates.
That is, you could create the following mappings (or a subset thereof):
But I'm not convinced these extra inverses provide much value:
m&=
is redundant with=&m
. It's not so hard to write the latter if you want your function invertible.~:&m`(n&,:)
vs=&m`(,:&n)
.-- Dan Bron <2008-02-01T23:45:30Z>
The text was updated successfully, but these errors were encountered: