EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #719 background imageLoading...
Page #719 background image
Appendix A: System Routines — Lists and Matrices
677
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
map_tail
Declaration:
void
map_tail
(void (*
proc
) (EStackIndex), EStackIndex
i
)
Category(ies):
Lists and Matrices, Math
Description:
Pushes an END_TAG onto the estack. Applies
proc
to each of the
successive expressions in the tail indexed by
i
, beginning with the deepest.
If
proc
does not push something onto the estack, the END_TAG pushed by
map_tail
will probably have to be deleted.
Inputs:
proc
Address of a procedure that takes one EStackIndex argument.
i
Index of the top tag of an internally-simplified tail of expressions.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: all_tail, any_tail, did_map_aggregate_arg
Example:
void push_ord (EStackIndex i)
{ if (STR_DATA_TAG == ESTACK(i)) /* if arg is a string */
push_quantum_as_nonnegative_int
(ESTACK (next_expression_index(i) + 2u));
else if (LIST_TAG == ESTACK(i))
{ map_tail (push_ord, i-1);
push_quantum (LIST_TAG);
}
else
ER_THROW (ER_ARG_MUST_BE_STRING);
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals