EqualDataFunc


Description:


public delegate bool EqualDataFunc<T> (T a, T b)

A function comparing two object defining equivalence relationship.

In other words if `equal_to` is `EqualDataFunc` then:

  • It must be reflexive: for all objects `a` it holds that

    `equal_to(a, a)`.

  • It must be symmetric: for all objects `a` and `b` if

    `equal_to(a, b)` then `equal_to(b, a)`.

  • It must be transitive: if `equal_to(a, b)` and `equal_to(b, c)`

    then `equal_to(a, c)`

Note:

The relationship must not change during lifetime of the delegate.

Parameters:

a

First value

b

Second value

Returns:

Whether values are equal

See also:

Hashable


Namespace: Gee
Package: gee-0.8