Array length: Difference between revisions

Add Uiua
(→‎Forth: use forth highlighting)
(Add Uiua)
(One intermediate revision by one other user not shown)
Line 2,395:
2
</pre>
 
Modern way:
<syntaxhighlight lang="pascal">
// Array length. Mikhalkovich Stanislav: May 16, 2024
##
var a := |'apple','orange'|;
a.Length.Print;
</syntaxhighlight>
{{out}}
<pre>
2
</pre>
 
=={{header|Perl}}==
 
Line 3,044 ⟶ 3,057:
<pre>
2
2
</pre>
 
=={{header|Uiua}}==
{{works with|Uiua|0.11.1}}
It would be more accurate to say this is the number of ''rows'' in an array.
<syntaxhighlight lang="uiua">
⧻{"apple" "orange"}
</syntaxhighlight>
{{out}}
<pre>
2
</pre>
1,827

edits