The definitive Wolfram Language and notebook experience
The original technical computing environment
All-in-one AI assistance for your Wolfram experience
We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise
Courses in computing, science, life and more
Learn, solve problems and share ideas.
News, views and insights from Wolfram
Resources for
Software DevelopersWe deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise
Wolfram SolutionsCourses in computing, science, life and more
Learn, solve problems and share ideas.
News, views and insights from Wolfram
Resources for
Software DevelopersNotes for Java programmers:
Not to be confused with Java's Iterator interface, the Wolfram Language's iterator notation reduces the code required for repetitive operations. Generally, these iterators are used for tasks that would require loops in Java.
Make a table of the first 10 squares:
In[1]:= Out[1]=Many functions in the Wolfram Language use the standard "iterator specification": min, max, step:
In[2]:= Out[2]=Notes for Java programmers:
In Java, iterative operations like this would require a for or while loop.
An alternative iterator specification just gives an explicit list of values:
In[3]:= Out[3]=Notes for Java programmers:
Using Table this way is analogous to iterating over a Java array or collection with a foreach construct.
Notes for Python programmers:
Using Table in this way is analogous to using the [... for ... in ...] list comprehension construct in Python, though it has somewhat richer semantics.
This makes a nested table:
In[1]:= Out[1]=RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4