Skip to content
No description, website, or topics provided.
Swift C C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
.gitignore
Package.swift
README.md

README.md

AnyEquatable

Provide func isEqual(_: Any, _: Any) -> Bool function which compares values even if they are not Equatable.

AnyEquatable.isEqual("abc", "abc") // true
AnyEquatable.isEqual(1, 3) // false

// Compare not Equatable types
struct NotEquatable {}
AnyEquatable.isEqual(NotEquatable(), NotEquatable()) // false

// Compare different types
AnyEquatable.isEqual(1, "abc") // false
You can’t perform that action at this time.