On Sat, 1 May 2021, Riccardo (Jack) Lucchetti wrote:
On Fri, 30 Apr 2021, Allin Cottrell wrote:
> Two small comments:
>
> (1) I've named my built-in function inset() rather than any().
Fine by me, any() was a provisional placeholder anyway; inset() is a better
name IMO. [...]
OK.
> (2) I've switched the order of the arguments: it seems to me
a little more
> intuitive to call
>
> inset(S, whatever)
>
> where S is the "set" and "whatever" is the object to be assessed
in term of
> membership of the set (scalar, series or matrix).
Funny, I find it more intuitive to have it the other way around, in the same
way as you write $x \in S$ (using TeX notation). I guess it's a matter of
personal taste.
I see why inituition could go either way on this. FWIW, here's my
thinking: I read the operator form "$x \in S$" as in effect applying
a predicate, in-set-S, to x. In switching to function form I want to
keep "in-set" and "S" close together, by making S the first
argument. So it's like:
* Is x in-set-S ?
* Is in-set-S(x) ?
Allin