Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Array-length/Euphoria/array-length.euphoria
Normal file
18
Task/Array-length/Euphoria/array-length.euphoria
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
sequence s = {"apple","orange",2.95} -- Euphoria doesn't care what you put in a sequence
|
||||
|
||||
? length(s)
|
||||
|
||||
3 -- three objects
|
||||
|
||||
? length(s[1])
|
||||
|
||||
5 -- apple has 5 characters
|
||||
|
||||
? length(s[1][$])
|
||||
|
||||
1 -- 'e' is an atomic value
|
||||
|
||||
|
||||
? length(s[$])
|
||||
|
||||
1 -- 2.95 is an atomic value
|
||||
Loading…
Add table
Add a link
Reference in a new issue