RosettaCodeData/Task/Array-length/Shen/array-length.shen
2023-07-01 13:44:08 -04:00

10 lines
233 B
Text

\\ Using a vector
\\ @v creates the vector
\\ <> ends the vector
\\ limit returns the length of a vector
\\ apple and orange are symbols (vs strings) in this case.
(limit (@v apple orange <>))
\\ As an list
(length [apple orange])