1.

What Does $ Mean?

Answer»

The symbol '$' in Euphoria VERSION 2.5 and later means "LENGTH(of_sequence)."

SEQUENCE s, i
s = "My Sequence"
i = s[$] -- i = "E"
i = s[4..$] -- i = "Sequence"
i = s[$-5] -- i = "q" 

The symbol '$' in Euphoria version 2.5 and later means "length(of_sequence)."

sequence s, i
s = "My Sequence"
i = s[$] -- i = "e"
i = s[4..$] -- i = "Sequence"
i = s[$-5] -- i = "q" 



Discussion

No Comment Found