typedef_equals 0.2.0 copy "typedef_equals: ^0.2.0" to clipboard
typedef_equals: ^0.2.0 copied to clipboard

typedef for equals `typedef Equals<T> = bool Function(T it1, T it2);`

typedef_equals #

This library expose:

/// Describe the equality of two item
typedef Equals<T>  = bool Function(T it1, T it2);

/// default implementation of `Equals` function
bool defaultEquals<T>(T it1, T it2) => it1 == it2;

So that other libraries can share same types for Equals<T>.

0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

typedef for equals `typedef Equals<T> = bool Function(T it1, T it2);`

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on typedef_equals