Many computations are conveniently specified in terms of applying functions in parallel to many elements in a list. Mathematica provides a suite of elegant functional ...
In an expression like f[{a,b,c}] you are giving a list as the argument to a function. Often you need instead to apply a function directly to the elements of a list, rather ...
Long viewed as an important theoretical idea, functional programming finally became truly convenient and practical with the introduction of Mathematica's symbolic language. ...
If you have a list of elements, it is often important to be able to apply a function separately to each of the elements. You can do this in Mathematica using Map. This ...
Mathematica usually keeps the elements of a list in exactly the order you originally entered them. If you want to treat a Mathematica list like a mathematical set, however, ...
Picking out elements of lists. We will use this list for the examples. Here is the last element of t.
Many programs you write will involve operations that need to be iterated several times. Nest and NestList are powerful constructs for doing this. Applying functions of one ...
There are many functions that are built into Mathematica. This tutorial discusses how you can add your own simple functions to Mathematica. As a first example, consider ...
Lists
(Mathematica Overview) Making Lists of Objects Collecting Objects Together Making Tables of Values
Making lists from functions. This makes a list of 5 elements, each of the form p[i]. Here is another way to produce the same list.