![]() |
|
P is for Practical | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
> I don't see how the logic is compatible
Set operations have a natural analogy to Boolean operations. And in mathematics and CS and and or are often replaced with * and + notations, especially in pre-LaTeX documents. That's because the truth tables are the same
Arithmetic operators + - * / are also "close" in precedence, associativity and context (see perlop ) and the grouping rules are well known. Furthermore is comparison with < > => <= obvious here. Also the duplicity of == and eq for comparison comes handy (same "set object" or same "set elements") > STRING * 3 to be equivalent to STRING + STRING + STRING. not sure what you mean set elements are unique, if you refer to power-sets the cross operator x or power ** may be the better choice.
Cheers Rolf In reply to Re^9: Split tab-separated file into separate files, based on column name ( Operator overloading )
by LanX
|
|