=pod =encoding utf8 =head1 NAME Muldis::D::Ext::Tuple - Muldis D extension adding more generic tuple operators =head1 VERSION This document is Muldis::D::Ext::Tuple version 0.25.0. =head1 PREFACE This document is part of the Muldis D language specification, whose root document is L; you should read that root document before you read this one, which provides subservient details. =head1 DESCRIPTION Muldis D has a mandatory core set of system-defined (eternally available) entities, which is referred to as the I or the I; they are the minimal entities that all Muldis D implementations need to provide; they are mutually self-describing and are used to bootstrap the language; any entities outside the core, called I, are non-mandatory and are defined in terms of the core or each other, but the reverse isn't true. This current C document describes the system-defined I, which consists of extra operators for generic tuples, adding to the minimum few defined in the language core. This current document does not describe the polymorphic operators that all types, or some types including core types, have defined over them; said operators are defined once for all types in L. I =head1 SYSTEM-DEFINED GENERIC TUPLE-CONCERNING FUNCTIONS These functions are applicable to mainly tuple types, but are generic in that they typically work with any tuple types. =over =item C This function results in the degree of its argument (that is, the count of attributes it has). =item C This function results in the scalar or nonscalar value of the sole attribute of its argument. This function will fail if its argument is not of degree 1. =item C This function results in the C value which has just one attribute whose name is given by C and whose value is given by C. =item C This function results in the tuple value that is the default value of the tuple data type whose name is given in the C argument, but that zero or more of its attribute values have been substituted by values given in the C argument. This function is a short-hand for C on the result of C. This function will fail if either C would fail for the same C argument, or if its result isn't a tuple type, or if the heading of C isn't a subset of the heading of the default. The purpose of this function is to support greater brevity in Muldis D coding such that users can define just part of a desired tuple value and have the remainder filled in from defaults for them; particularly useful with tuples that conceptually have some optional attributes. =back =head1 SEE ALSO Go to L for the majority of distribution-internal references, and L for the majority of distribution-external references. =head1 AUTHOR Darren Duncan (C) =head1 LICENSE AND COPYRIGHT This file is part of the formal specification of the Muldis D language. Muldis D is Copyright © 2002-2008, Darren Duncan. See the LICENSE AND COPYRIGHT of L for details. =head1 TRADEMARK POLICY The TRADEMARK POLICY in L applies to this file too. =head1 ACKNOWLEDGEMENTS The ACKNOWLEDGEMENTS in L apply to this file too. =cut