Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am anisoptera on github.
  • I am anisoptera (https://keybase.io/anisoptera) on keybase.
  • I have a public key ASAkCxWduRHPU2D14Z-3PS1IXhs2e00eidFGAJkITXd9Two

To claim this, I am signing this object:

@anisoptera
anisoptera / NSDecimalNumberOperators.swift
Last active August 17, 2022 09:40
The overloads I've been dying to write since I started working with NSDecimalNumbers.
// The overloads I've been dying to write since I started working with NSDecimalNumbers.
import Foundation
@infix func > (left:NSDecimalNumber, right:NSDecimalNumber) -> Bool
{
return left.compare(right) == NSComparisonResult.OrderedDescending
}
@infix func < (left:NSDecimalNumber, right:NSDecimalNumber) -> Bool