![]() |
|
Navigation |
Synopsis Determine the number of elements in a list.
Function
int size(list[&T] lst)
Usage
import List;
Examples
rascal>import List; ok rascal>size([20, 10, 30]); int: 3 rascal>size(["zebra", "elephant", "snake", "owl"]); int: 4 Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]() ![]() |