Tuples: tuple()
You will get to learn about tuples and the use of the tuple() function in this lesson.
Tuples
Tuples are for combining multiple type values to be used as a single object. They are implemented as a library feature by the Tuple
template from the std.typecons
module.
Tuple makes use of AliasSeq
from the std.meta
module for some of its operations.
Tuple and tuple()
Tuples are usually constructed by the convenience function tuple()
:
Get hands-on with 1400+ tech skills courses.