Tuple.rename

Renames the elements of a Tuple.

rename uses the passed names and returns a new Tuple using these names, with the content unchanged. If fewer names are passed than there are members of the Tuple then those trailing members are unchanged. An empty string will remove the name for that member. It is an compile-time error to pass more names than there are members of the Tuple.

  1. ref rename()
    struct Tuple
    ref return
    rename
    (
    names...
    )
    ()
    if (
    names.length == 0 ||
    allSatisfy!(isSomeString, typeof(names))
    )
  2. ref rename()

Meta