Copyright © X4lldux <x4lldux@vectron.io>
set implementation using maps.
Copyright X4lldux 2017 <x4lldux@vectron.io>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.abstract datatype: set(Element)
set() = set(term())
add_element/2 | adds an element to a set. |
from_list/1 | given a list, returns a set. |
intersection/2 | given two sets, returns their intersection. |
new/0 | returns new set. |
size/1 | given set, returns it's size. |
to_list/1 | given a set, returns a list of elements. |
adds an element to a set
from_list(L::[E]) -> set(E)
given a list, returns a set
given two sets, returns their intersection
new() -> set()
returns new set
size(Mapset::set()) -> integer()
given set, returns it's size
to_list(Mapset::set(E)) -> [E]
given a set, returns a list of elements
Generated by EDoc