distinct


Description:

public Seq<G> distinct (owned HashDataFunc<G>? hash = null, owned EqualDataFunc<G>? equal = null)

Returns a seq which contains the distinct elements of this seq, based on the given functions.

This is a stateful intermediate operation.

Parameters:

hash

a non-interfering and stateless hash function. if not specified, Gee.Functions.get_hash_func_for is used to get a proper function

equal

a non-interfering and stateless equal function. if not specified, Gee.Functions.get_equal_func_for is used to get a proper function

Returns:

the new seq