choices

// FIXME: the options should have both a label and a value

if label is null, it will try to just stringify value.

if type is int or size_t and it returns a string array, we can use the index but this will implicitly not allow custom, even if allowCustom is set.

  1. Choices!T choices(T[] options, bool allowCustom, bool allowReordering, bool allowDuplicates)
    choices
    (
    T
    )
    (,
    bool allowCustom = false
    ,
    bool allowReordering = true
    ,
    bool allowDuplicates = true
    )
  2. Choices!T choices(T[] delegate() options, bool allowCustom, bool allowReordering, bool allowDuplicates)

See Also

Meta