Array length: Difference between revisions
Content added Content deleted
imported>Louisono m (function to cast int to string is not in the Basics module but in the String module) |
(Add LDPL) |
||
Line 1,841: | Line 1,841: | ||
<syntaxhighlight lang="latitude">println: ["apple", "orange"] length.</syntaxhighlight> |
<syntaxhighlight lang="latitude">println: ["apple", "orange"] length.</syntaxhighlight> |
||
=={{header|LDPL}}== |
|||
<syntaxhighlight lang="ldpl">data: |
|||
fruits is text list |
|||
len is number |
|||
procedure: |
|||
push "apple" to fruits |
|||
push "orange" to fruits |
|||
get length of fruits in len |
|||
display len lf |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
2 |
|||
</pre> |
|||
=={{header|Liberty BASIC}}== |
=={{header|Liberty BASIC}}== |