Wolfram: Iteration
Intro to Iteration in Wolfram language
Loop or iteration are usually done by many bultin functions.
Generate a list
Mapping a function to list
Map,MapIndexed,MapThread, etc.- Wolfram: Map Function to List
Recursion
Nest,NestWhile,Fold,FoldWhile,FixedPointetc.- Wolfram: Nest, FixedPoint (Recursion)
- Wolfram: Fold (reduce)
Filter
Select,Cases, etc.- Wolfram: List. Select (Filter)
Find membership
Position,MemberQ,Count, etc.- Wolfram: List. Check Exist, Count
- Wolfram: List. Position (Get Positions of Elements by Pattern)
Grouping
Procedural Loop
Wolfram. List Operations, and Loop, Iteration, Recursion
- Wolfram: List Operations
- Wolfram: List. Table (Create List, Nested Array)
- Wolfram: Range (Create Flat List)
- Wolfram: List. Get Element by Index (Part, Take, Drop, First, Last, Most, Rest)
- Wolfram: Extract (Get Element by Position)
- Wolfram: List. Add Element
- Wolfram: List. Delete Element
- Wolfram: List. Change Element
- Wolfram: List. Check Exist, Count
- Wolfram: List. Position (Get Positions of Elements by Pattern)
- Wolfram: List. Join, Union, Intersection, Difference
- Wolfram: List. Min, Max
- Wolfram: List. Select (Filter)
- Wolfram: List. Sort Reverse Ordering
- Wolfram: Flatten
- Wolfram: Riffle (Add at Every Nth)
- Wolfram: RotateLeft
- Wolfram: Padding
- Wolfram: List. Partition, Reshape, Split, Gather
- Wolfram: Transpose
- Wolfram: List. Same Items Counts, Tally, Group
- Wolfram: List. Combinatorics
- Wolfram: Iteration
- Wolfram: Map Function to List
- Wolfram: Scan (foreach)
- Wolfram: Nest, FixedPoint (Recursion)
- Wolfram: Fold (reduce)
- Wolfram: Loop