![]() |
|
Navigation |
Synopsis Determine the number of elements in a set.
Function
int size(set[&T] st)
Usage
import Set;
Examples
rascal>import Set; ok rascal>size({1,2,3,4}); int: 4 rascal>size({"elephant", "zebra", "snake"}); int: 3 rascal>size({}); int: 0 Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]() ![]() |