? 1={}, is there really any other interpretation?

new topic     » topic index » view thread      » older message » newer message

Hello,


For the following statement:

? 1={}

could there really be any interpretation other than to compare
every element of the sequence with the atom '1' ?
After all, we are not trying to compare what types the two
arguments are, we are trying to compare all the sequence elements
to the atom '1'.

In this example,

? 1={1,2,3}

the number 1 is compared to every element of the sequence, and
a sequence is returned with the results, and it must be a sequence
returned in order to show the results.  A single number like 1 or
0 would not indicate anything useful, and if we want to know what
type something is, we have 'atom()' and 'sequence()'.



Take care,
Al

E boa sorte com sua programacao Euphoria!


My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu