Int

@frozen
struct Int : FixedWidthInteger, SignedInteger

Instance of Semigroup for Int. Uses sum as combination of elements.

  • Declaration

    Swift

    public func combine(_ other: Int) -> Int
  • Declaration

    Swift

    public static func empty() -> Int
  • Declaration

    Swift

    public func multiply(_ other: Int) -> Int
  • Declaration

    Swift

    public static func one() -> Int