up: MULTISET | index | Zimbu documentation |
The builtin type multiSet. MultiSets keep a counter for each key that is present. NOT IMPLEMENTED YET The key type must support the ToString() method. It is used for ToString() on the multiSet and for error messages. Example: multiSet<string> ms = NEW() ms.add("yes") ms.add("yes") IO.WriteLine("multiSet has yes: " .. ms.has("yes")) IO.WriteLine("multiSet has yes " .. ms.get("yes") .. " times") ms.remove("yes")
|
FUNC $ToString() string @public
|
Copyright 2013 Bram Moolenaar All Rights Reserved. |
Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0 |