Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Lists

14. Lists

Introduction 443

14.1 Basic List Manipulation 444

14.1.1 Forming Lists 444 Dimensions, Transpose, Table, Map, Range, Array, ConstantArray, etc.

14.1.2 Selecting Parts 448 [[ ]], ;;, First, Last, Rest, Most, Take, Drop, TakeWhile, LengthWhile

14.1.3 Inserting and Deleting 449 Prepend, Append, Insert, Delete, Riffle, PadRight, etc.

14.1.4 Ungrouping and Grouping 450 Flatten, Partition, Split

14.1.5 Reordering 452 Transpose, Sort, SortBy, Union, Reverse, RotateLeft, RotateRight

14.1.6 Combinatorial Operations 454 Permutations, Subsets, Tuples

14.1.7 Searching Elements 457 Select, Count, Cases, DeleteCases

14.1.8 Searching Positions 458 Position, Extract, Ordering

14.1.9 Operations on Several Lists 459 Join, Union, Intersection, Complement

14.2 Advanced List Manipulation 459

14.2.1 Mapping the Elements 459 Map, MapAt, MapAll, MapIndexed, Scan

14.2.2 Changing the Head 462 Apply

14.2.3 Sequences 463 Sequence, Apply

14.2.4 Mapping Two Lists 465 Thread, MapThread, Inner, Outer


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial