len
Returns the length of a set.
This function does not generate a change.
Function
set.len()
Arguments
None
Return value
Returns length of the set.
Example
This code uses len()
to return the number of items in a set:
set({item: 'a'}, {item: 'b'}).len();
Return value in JSON format