to_set


Description:


public Collector<Set<G>,Object,G> to_set<G> (owned HashDataFunc<G>? hash = null, owned EqualDataFunc<G>? equal = null)

Returns a collector that accumulates the elements into a new set.

There are no guarantees on the type, mutability, or thread-safety of the set.

Parameters:

hash

a hash function. if not specified, Gee.Functions.get_hash_func_for is used to get a proper function

equal

an equal function. if not specified, Gee.Functions.get_equal_func_for is used to get a proper function

Returns:

the collector implementation


Namespace: Gpseq.Collectors
Package: gpseq-1.0