Top index Wirbel home

::cleared

set(X).cleared() - return emtpy copy of set
list(X).cleared() - return emtpy copy of list
string.cleared() - return emtpy string
dict(K.cleared(V) adict) - return emtpy copy of dictionary

list(X).cleared() creates a new list with the same type as alist. alist keeps unchanged. This function is useful for polymorphic programming and allows to write code that works for all collection types.