Top
Back: Control structures
Forward: break
FastBack: Functions
FastForward: System variables
Up: Control structures
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.2.1 apply

Syntax:
apply( expression , function );
Purpose:
applies the function to all elements of the first argument. The first argument must be of type intvec, intmat, or list. The result will be of the same type as the first argument. The function must be a kernel command or a procedure which takes one argument and returns a type which can be an element of the result.
Example:
 


Top Back: Control structures Forward: break FastBack: Functions FastForward: System variables Up: Control structures Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-7, Aug 2013, generated by texi2html.