Category

List Manipulation

119 items

  • AddIndices

    Pairs each element of a list with its index

  • AllComplements

    Find elements of lists that are not in other lists

  • AllSameBy

    Check if all the elements of a list give the same value after applying a function

  • AlternateElements

    Combine specified elements of two lists into a new list

  • AntidiagonalTotals

    Give the totals of the entries on the rising diagonals of a square matrix

  • AppendAt

    Append to the specified element or after the last element at a specified level of an expression

  • AppendColumn

    Append a column to the right of a matrix

  • AppendSequence

    Append multiple items to an expression at once

  • ArrayCrop

    Remove padding from an array

  • ArrayCropPad

    Crop uniform values from the edges of an array

  • BinListsBy

    Bin data into lists based on applying a function to each item

  • BinarySearch

    Find the position of a target value within a sorted array

  • BinarySearchBy

    Find the position of a target value within an array sorted after applying a function

  • BisectList

    Make a pair of lists consisting of alternate terms from the original list

  • BitListToByteArray

    Convert a list of bits to a byte array

  • Broadcasting

    Calculate multidimensional arrays according to the broadcasting rules of NumPy

  • ByteArrayToBitList

    Converts a byte array to a list of bits

  • ContainsAllMultiplicities

    Similar to ContainsAll but taking the multiplicities into consideration

  • CorrespondingIntegers

    Create a list of positive integers containing as many elements as the expression to which it is applied

  • CumulativeAverages

    Calculate the cumulative averages of a list

  • DeleteFailures

    Delete failures in an expression

  • DescendingSublists

    Split a list at its left-to-right maxima

  • DifferencesBy

    Apply a function to neighboring pairs in a list

  • DropColumn

    Drop columns from matrices

  • DropSmallest

    Drop the smallest values from a list

  • DropTrailingWhile

    Drop elements at the end of a list so long as a criterion is fulfilled

  • DropWhile

    Drop elements of a list while a criterion remains true

  • Duplicates

    Select all the elements that appear twice or more in a list

  • DuplicatesBy

    Select all the elements from a list for which a given function returns the same answer twice or more

  • DuplicatesList

    Give the elements that appear more than once in the input list

  • Equisample

    Sample evenly spaced elements from a list

  • EquivalentOrderings

    Generalize Ordering by giving alternative orderings if there are equal items

  • EveryOther

    Split a list into two sublists, gathering every other element of the list

  • ExampleDataset

    Retrieve example data as a dataset

  • ExpressionBag

    A data structure meant for accumulating items efficiently

  • FirstRest

    Conveniently get both the first and remaining elements

  • FlatTable

    A flattened version of Table

  • FlattenAmbiguityList

    Restructure an expression with nested AmbiguityList expressions into a single flat AmbiguityList

  • FoldIndexedList

    Perform a folding operation while also parsing the index as the third argument

  • FoldRight

    Compute a right-associated fold

  • FoldRightList

    Compute a right-associated fold returning the list of intermediate results

  • FoldThreadList

    Perform a folding operation parsing multiple arguments

  • FourierShift

    Shift the zero-frequency term to the center of the spectrum

  • FourierShiftInverse

    Invert a zero-frequency shift

  • GatherByIndex

    Combine items into sublists based on their position

  • GeneralizedMapThread

    A version of MapThread that allows for ragged arrays and for lists with unequal depth

  • GroupByList

    Group elements according to a list of equivalence classes

  • GroupCases

    Group elements of a list using patterns

  • InShuffle

    Perform an in shuffle on a list

  • IncrementalParallelSelect

    Incrementally select elements in parallel from a list or infinite range that satisfy a predicate

  • IndexedOrderedTuple

    Give the index of an ordered tuple or return the ordered tuple with that index

  • IndexedSubset

    Give the index of a subset or return the subset with that index

  • JoinMap

    Map a function over a list and join the result

  • JoinMost

    An operator that joins in front of its arguments the sequence of lists it is provided

  • JoinRest

    An operator that performs a Join of its argument with the sequence of lists it is provided

  • LabelListPlot

    Plot the occurrences of labels in a list

  • LongestCommonPrefix

    Find the longest common contiguous prefix of a set of strings or lists

  • MapBatched

    Divide a Map operation into batches, performing an evaluation between batches

  • MapSlice

    Provide the part specifications to a mapped function as a sequence of arguments after the first one

  • MaximalSubsets

    Prune non-maximal subsets from a list of subsets

  • MetaTally

    Combine multiple tally results

  • MinimalSubsets

    Prune non-minimal subsets from a list of subsets

  • MutualInformation

    Compute the mutual information of data samples or a multivariate distribution

  • NearEqualPartition

    Partition a list into roughly equal lengths

  • OEISSequence

    Return the list provided by the OEIS for a given OEIS sequence number

  • OrderedTupleFromIndex

    Get the ordered tuple with the given index and length

  • OrderedTupleIndex

    Give the index of an ordered tuple

  • OutShuffle

    Perform an out shuffle on a list

  • PairMap

    Map a function to pairs formed from a list and another function

  • ParallelOuter

    Compute in parallel the generalized outer product of lists

  • ParetoListMinima

    Find the Pareto-minimal points in a set of numeric vectors

  • PartitionByCooccurence

    Find the best-fitting partitions for a list of groups using co-occurrence counts

  • PatternBindings

    Pick named elements of a pattern

  • PermutationFromIndex

    Give the permutation corresponding to a given length and lexicographic index

  • PermutationIndex

    Give the lexicographic index of a permutation

  • PointsToRules

    Convert a list of points into a list of substitution rules

  • PositionedCases

    Find positions and values within an expression matching a pattern

  • PrefixQ

    Test if the first elements of a list are the same as those from another list

  • Proportions

    Get the proportion of times that each distinct element appears in a list

  • ProportionsBy

    Get the proportion of times that each distinct element appears in a list when evaluated with a given function

  • RandomBins

    Distribute a list into random bins

  • RandomPartition

    Cut a list into random segments

  • RandomSplit

    Randomly divide a list into a specified number of segments

  • Ranking

    Find the rank of each of the items in a list

  • RatioPartition

    Partition a list into sublists with lengths proportional to weights in another list

  • ReverseAccumulate

    Replace each element of a list with the sum of the elements in the original list that are not to the left of that element

  • RotateLeftUntil

    Cycle the elements of a list to the left until a criterion is satisfied

  • SafeTake

    Safely take elements from lists

  • SearchOrderedList

    Search an ordered list at speed logarithmic in the length of a list

  • SelectAtLevel

    Select elements at a certain level that satisfy a criterion

  • SelectFirstIndex

    Find the index of the first element satisfying a criterion

  • SelectPermutations

    Get permutations that satisfy a certain criterion

  • SelectSubsets

    Generate subsets that satisfy a certain criterion

  • SetPartitions

    Give all possible ways to partition a set into blocks, ignoring the order of blocks and order within blocks

  • Shuffle

    Rearrange elements of a list

  • Slice

    An operator form of Part

  • StandardOrderFromIndex

    Get the standard ordering of the desired index

  • StandardOrderIndex

    Get the index of a list of integers in standard order

  • SubsetFromIndex

    Get the subset with the given index and length

  • SubsetGroup

    Compute a group induced by a permutation group on k-subsets

  • SubsetIndex

    Give the index of a subset

  • SubsetsWithComplements

    Get a list of subsets of a list along with their complements

  • SymmetricDifference

    The complement of the union and intersection of lists, with duplicates deleted

  • TableQ

    Similar to ArrayQ, except it allows for ragged collections of nested lists

  • TableToTrainingSet

    Prepare rectangular data for use in the machine learning functions Classify, Predict and NetTrain

  • TableWhile

    Create tables of values while given criteria hold

  • TakeAfter

    Take elements after a specified element in an expression

  • TakeBefore

    Take elements before the specified element in an expression

  • TallyBy

    Tally items that give the same value when a function is applied

  • TrainTestSplit

    Split data into training and testing sets

  • TreemapPlot

    Plot a nested list of values as a treemap

  • TrigApproximateList

    Generate a trig series that approximates a list of data

  • TrimLeft

    Shorten lists to the same length by removing elements from the left

  • TrimRight

    Shorten lists to the same length by removing elements from the right

  • TupleFromIndex

    Return the tuple corresponding to a given index

  • TupleIndex

    Compute the index of a given tuple of non-negative integers

  • UnionTo

    Equivalent to Union but redefines the first argument to the result

  • UnsortedComplement

    Delete the elements of some lists from a list x without changing either the order of x or the multiplicities of its elements

  • VennGraphPlot

    Visualize the intersections of overlapping sets