|
SOLUTIONS
|
-
Functions
- Append
- Apply
- Array
- ArrayPlot
- BinCounts
- Cases
- Column
- Count
- DeleteDuplicates
- Differences
- Drop
- Export
- Extract
- First
- Flatten
- FoldList
- Gather
- Grid
- Import
- Join
- Last
- Length
- List
- ListPlot
- Map
- MapIndexed
- MapThread
- MemberQ
- NestList
- Outer
- Part
- Partition
- Position
- Range
- Reap
- ReplacePart
- Reverse
- Riffle
- Row
- Scan
- Select
- Sort
- Sow
- SparseArray
- Split
- Table
- Take
- Tally
- Thread
- Total
- Transpose
- Tuples
- Related Guides
- Tutorials
List Manipulation
Lists are central constructs in Mathematica, used to represent collections, arrays, sets, and sequences of all kinds. Lists can have any structure and size, and can routinely involve even millions of elements. Well over a thousand built-in functions throughout Mathematica operate directly on lists, making lists a powerful vehicle for interoperability.
Learning ResourcesLearning Resources
Related Web Resources Community |
Featured ExamplesFeatured Examples |
-
Analyze Words in a Block of Text
-
Arbitrarily Nested Tables
-
Arrange Controls Using Typesetting Constructs
-
Automatically Parallelize Computations
-
Boolean Operations and Graphs
-
Build a Manipulate with Indexed Controls
-
Combine Charts to Create New Presentations
-
Construct a Globe Showing All Weather Stations
-
Create a Tabbed Interface
-
Differences between Prime Numbers
-
Display Numeric Approximations
-
Emulate a Touch-Tone Dialer
-
Export a Spreadsheet
-
Find Leap Years
-
Flatten Nested Arrays
-
Frame Prime Integers
-
Generate an Array from a Function on Indices
-
Generate and Display Elements in a Lattice
-
Get and Plot Data from a Database
-
Implement the Bubble Sort Algorithm with Patterns and Rules
-
Implement the Heap Sort Algorithm with Patterns and Rules
-
Lexical Analysis
-
Rapidly Search the Human Genome
-
Selection Sort Algorithm
-
Show Gray Codes of a Given Length
-
Successively Replace Entries in an Array
-
Use Wolfram|Alpha to Get Information on a Stock
-
View Lists as Matrices
-
Visualize a Wavelet Scalogram
-
Visualize GDP for the G8 Countries
ReferenceReference
Constructing Lists »
{a,b,...} (List) — specify a list explicitly
Table — make a table of values of an expression
Array — make an array of any dimension from a function
Range ▪ SparseArray ▪ Tuples ▪ NestList ▪ Sow ▪ Reap ▪ ...
Elements of Lists »
list[[...]] (Part) — parts or sequences of parts (
), resettable with ![]()
First ▪ Last ▪ Take ▪ Drop ▪ Extract ▪ Append ▪ ReplacePart ▪ ...
Select — select according to a function
Cases — give cases matching a pattern
Length ▪ Position ▪ MemberQ ▪ DeleteDuplicates ▪ ...
Rearranging & Restructuring Lists »
Flatten — flatten out nested lists
Join ▪ Partition ▪ Transpose ▪ Reverse ▪ Sort ▪ Split ▪ Gather ▪ Riffle ▪ ...
Applying Functions to Lists »
Map (/@) — map a function over a list: ![]()
Apply (@@, @@@) — apply a function to a list: ![]()
MapIndexed ▪ Scan ▪ Thread ▪ MapThread ▪ Outer ▪ FoldList ▪ ...
Math & Counting Operations »
{..}+{..}, etc. — automatically operate in parallel on list elements
Total ▪ Differences ▪ Tally ▪ Count ▪ BinCounts ▪ ...
Displaying & Visualizing Lists »
Column ▪ Row ▪ Grid ▪ ListPlot ▪ ArrayPlot ▪ ...
