Skip to content
FutureBlitz

    Install

    Import std.core.interfaces

    Defaultable

    std.core.interfaces

    interface

    Public Interface Defaultable

    What has a value to start from, for generic code that needs one: the numbers' is 0, Bool's False, String's "", an Enum's its zero, its first value or a @Flags Enum's no flags, and std's collections' is empty. It's DefaultValue, since Default is Select's keyword.

    std/core/interfaces.fb, line 123

    • Static Method DefaultValue(): Self static method #

      The value to start from, like 0 for a number, "" for a String, or an empty collection.

    Report an issue with this page or with FutureBlitz on GitHub.