Optional.opDollar

Provides indexing into arrays

The indexes and slices are also checked to be valid and none is returned if they are not

  1. auto opIndex(size_t index)
  2. auto opIndex()
  3. auto opSlice(size_t begin, size_t end)
  4. auto opDollar()
    struct Optional(T)
    const
    static if(isArray!T)
    opDollar
    ()

Meta