Array

extension Array: HBMustacheTransformable
extension Array: HBComparableSequence where Element: Comparable
  • Transform Array.

    Transforms available are first, last, reversed, count and for arrays with comparable elements sorted.

    Declaration

    Swift

    public func transform(_ name: String) -> Any?

    Parameters

    name

    transform name

    Return Value

    Result

Available where Element: Comparable