Countable

public protocol Countable

Allows matching count, verifying whether given count is right or not

  • Returns whether given count matches countable case.

    Declaration

    Swift

    func matches(_ count: Int) -> Bool

    Parameters

    count

    Given count

    Return Value

    true, if it is within boundaries, false otherwise