Functions

The following functions are available globally.

  • Compare 2 NSDecimalNumbers.

    Declaration

    Swift

    public func < (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool

    Return Value

    true if the left side is lesser than the right side, false otherwise.

  • Compare 2 NSDecimalNumbers.

    Declaration

    Swift

    public func <= (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool

    Return Value

    true if the left side is lesser than or equal the right side, false otherwise.

  • Compare 2 NSDecimalNumbers.

    Declaration

    Swift

    public func > (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool

    Return Value

    true if the left side is greater than the right side, false otherwise.

  • Compare 2 NSDecimalNumbers.

    Declaration

    Swift

    public func >= (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool

    Return Value

    true if the left side is greater than or equal the right side, false otherwise.

  • Multiply 2 NSDecimalNumbers together.

    Declaration

    Swift

    public func * (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber

    Return Value

    The result of multiplying the left side with the right side.

  • Divide one NSDecimalNumber with another.

    Declaration

    Swift

    public func / (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber

    Return Value

    The result of dividing the left side with the right side.

  • Perform a two-way binding between 2 mutable properties.

    Declaration

    Swift

    @discardableResult
    public func <~> <P1, P2>(property1: P1, property2: P2) -> Disposable where P1 : MutablePropertyProtocol, P2 : MutablePropertyProtocol, P1.Value == P2.Value
  • Match a regex with a string.

    Declaration

    Swift

    public func ~= (pattern: Regex, string: String) -> Bool

    Parameters

    pattern

    The Regex to match the string against.

    string

    The string to try to match against the Regex.

    Return Value

    true if pattern matches string, false otherwise.