Protocols

The following protocols are available globally.

  • Describes an object that has a specific value representing its empty state.

    See more

    Declaration

    Swift

    public protocol EmptyValueRepresentable : Emptyable
  • Describes an object that be empty.

    let str = ""
    let retval = str.isEmpty
    
    // so something with str which is true
    
    See more

    Declaration

    Swift

    public protocol Emptyable

Public Functions

  • Conformance to this protocol provides implementation of some of the Kotlin Scope Functions. To add conformance to your own types, see examples below.

    class MyClass: ScopeFunctions {}
    
    struct MyStruct: ScopeFunctions {}
    
    See more

    Declaration

    Swift

    public protocol ScopeFunctions