Wolfram Research


Core Language & Structure

171 items

  • AbortOnMessage

    Abort an evaluation as soon as a message is generated

  • AddIndices

    Pairs each element of a list with its index

  • AllComplements

    Find elements of lists that are not in other lists

  • AllSameAs

    Check if all elements of a list are the same as a value

  • AlternateElements

    Combine specified elements of two lists into a new list

  • Antidiagonal

    Give the antidiagonal of a matrix

  • AntidiagonalMatrix

    Creates an antidiagonal matrix by given the antidiagonal

  • AntidiagonalMatrixQ

    Tests whether a matrix is an antidiagonal matrix

  • AppendColumn

    Append a column to the right of a matrix

  • AppendSequence

    Append multiple items to an expression at once

  • ApplyLevel

    Create an operator that applies a function over data at a specified level

  • AssociatePairs

    Convert a list of pairs into an association

  • AssociationKeyFlatten

    Flatten keys in a nested association

  • AssociationMapAt

    Similar to MapAt but with improved behavior for nested expressions involving associations

  • AssociationPartition

    Partition an association into a list of associations

  • 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

  • BitListToByteArray

    Convert a list of bits to a byte array

  • BlockProtected

    Modify definitions of protected symbols and ensure that their attributes are restored

  • BooleanCompose

    Functionally compose a Boolean expression

  • Broadcasting

    Calculate multidimensional arrays according to the broadcasting rules of NumPy

  • ByteArrayToBitList

    Converts a byte array to a list of bits

  • CacheTo

    Return a stored expression if it exists; otherwise, evaluate and store an expression

  • CheckMatch

    Verify that an evaluation output matches a given pattern and produces no errors

  • ColumnMap

    Map functions over columns instead of rows

  • ConstantAssociation

    Create an association whose values are all a constant

  • ContainsAllMultiplicities

    Similar to ContainsAll but taking the multiplicities into consideration

  • ContainsQ

    Determine whether an input expression contains one or more subexpressions (at any level) matching a given pattern

  • ContextModule

    Temporarily set $Context and $ContextPath to a unique empty context for an evaluation

  • CorrespondingIntegers

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

  • DeclareArgumentCount

    Set up a symbol to give an error message when called with an unexpected number of arguments

  • DefinitionData

    Store full definitions for a symbol in a compact object

  • DeleteAdjacentDuplicates

    Delete adjacent duplicates from a list

  • DeleteCasesFrom

    Remove all elements from the value of a symbol that match a pattern and reset the symbol to the result

  • DeleteFailures

    Delete failures in an expression

  • DeleteFrom

    Delete an element from the value of a symbol and reset the symbol to the result

  • DescendingSublists

    Split a list at its left-to-right maxima

  • DifferencesBy

    Apply a function to neighboring pairs in a list

  • DirectorySize

    Find the total size of a directory

  • Discard

    Eliminate elements from a list for which a given conditional is True

  • DropWhile

    Drop elements of a list while a criterion remains true

  • Duplicates

    Select all the elements which 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

  • DynamicMap

    Map functions over lists while showing dynamic progress

  • ElementQ

    Test if an element is contained in a list

  • EmptyQ

    Test whether a structure can be considered empty

  • EnsureDirectory

    Ensure that a directory exists, no matter what

  • EnsureFilePath

    Create the parent directories necessary to fill out a given file path

  • Excise

    Remove enclosed arguments

  • FailOnMessage

    Stop an evaluation when a message is encountered and return a given failure expression

  • FirstMatchingValue

    Evaluate expressions in turn until a given form is returned

  • FlipFunction

    Reverse the order of two arguments of a function

  • FoldIndexed

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

  • 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

  • FoldThread

    Perform a folding operation parsing multiple arguments

  • FoldThreadList

    Perform a folding operation parsing multiple arguments

  • FullSymbolName

    Return a fully qualified name of a symbol regardless of current context settings

  • GeneralizedMapThread

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

  • GetKeyValuePattern

    Create a suitable KeyValuePattern from an example association

  • GroupByList

    Group elements according to a list of equivalence classes

  • HoldArguments

    Construct a function from another function that holds certain arguments

  • InheritedBlock

    Similar to Block, except values of local symbols are not cleared when entering the block

  • Inline

    Insert the values of symbols into an expression before evaluation

  • ItemCounts

    A two-argument form of Counts that gives an association between a set of provided keys and the number of times those keys appear in a list

  • 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

  • JoinTo

    Equivalent to Join, but redefines the first argument to the result

  • KeyCombine

    Map a function over the keys of an association, and collect or combine values in the event of key collisions

  • KeyIndex

    Create an association indexed by a given key from a list of associations

  • KeyMapIf

    Map a function conditionally over keys in an association

  • KeyReplace

    Replace keys in an association

  • LabeledPrint

    Print an expression with a label of its unevaluated form

  • LocalizedByRules

    Use rules as local variable lists

  • LongestCommonPrefix

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

  • MapAtKey

    Apply functions to specific keys in an association

  • MapCases

    Map a function at parts of an expression that match a given pattern

  • MapIf

    Map a function for elements in a list when a test gives True

  • MapLevel

    Create an operator that maps a function over data at a specified level

  • MapReduceOperator

    Like an operator form of GroupBy, but where one also specifies a reducer function to be applied

  • MapSelectCounted

    Map a function over selected elements of a list, also passing in a running count of such elements

  • 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

    Prunes non-minimal subsets from a list of subsets

  • MinMaxRounded

    Get the minimum and maximum of a list rounded to a multiple

  • MonitorProgress

    Monitor the progress of a computation and display the current step and estimated time remaining

  • NestedAssociate

    Append a value in a nested association

  • NestedKeyDrop

    Drop keys from a nested association

  • NestedLookup

    Look up a set of keys in order to get deeper parts of an association or list of rules

  • NthSubset

    Get the subset of a list for a given index

  • ObjectExistsQ

    Check if an object exists

  • OnceUnlessFailed

    Equivalent to using Once, but will only cache results if evaluation was successful

  • OnFailure

    Apply a function on an expression when FailureQ gives True on it; otherwise, return the expression

  • OpenStreamQ

    Test if a stream is open

  • PatternBindings

    Pick named elements of a pattern

  • Pop

    Remove and return an element of an expression

  • PositionedCases

    Find positions and values within an expression matching a pattern

  • PositionLargest

    Get the position of the largest elements in a list

  • PositionLargestBy

    The position of the elements in a list that are largest according to a given function

  • PrefixQ

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

  • PrependColumn

    Prepend a column to the left of a matrix

  • PrettyGrid

    Conveniently display two dimensional data in a nicely styled grid

  • QuietCheck

    Use Check and Quiet, conveniently combined into one function

  • RandomPartChoice

    Choose random parts of an expression

  • RandomPartition

    Cut a list into random segments

  • RandomRealPoint

    Randomly choose a point within a specified domain

  • RandomSplit

    Randomly divide a list into a specified number of segments

  • Rarest

    The rarest elements in a list

  • ReadableForm

    Display an expression in a format intended to maximize readability

  • RepeatUntil

    Evaluate an expression repeatedly until a test is satisfied

  • ReplaceAllOutside

    Similar to ReplaceAll, but parts of the expression can be ignored by providing a pattern

  • ReplaceAllUnheld

    Apply replacement rules to evaluated parts of expression

  • ReplaceAt

    Replace parts of an expression using replacement rules and a part specification

  • ReplacePartWith

    Replace the part of an expression specified by position via a rule

  • 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

  • RootSymbol

    Recursively take the head of an expression

  • RotateLeftUntil

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

  • SameAsQ

    An operator form of SameQ

  • SearchOrderedList

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

  • SecondsToday

    Fractional number of seconds that have elapsed since midnight

  • SelectAtLevel

    Select elements that satisfy a criterion at a certain level

  • SelectFirstBy

    Apply a function to a list and select the first that satisfies a test

  • SelectFirstIndex

    Find the index of the first element satisfying a criterion

  • SelectIndices

    Find indices of parts satisfying a criterion

  • SelectPermutations

    Get permutations that satisfy a certain criterion

  • SelectPositions

    A function like Select that returns positions instead of values

  • SelectSubsets

    Generate subsets that satisfy a certain criterion

  • SelectTuples

    Generate tuples that satisfy a certain criterion

  • SetByRules

    Use rules to make assignments

  • SetTo

    Use as an operator form of Set

  • SetUnless

    Initialize a value unless it already satisfies a given condition

  • Slice

    An operator form of Part

  • SparseAssociation

    Create a data rectangular structure that behaves like a SparseArray indexed by string keys

  • SplitByPatterns

    Split a list into sublists that match the same pattern from an ordered list of patterns

  • SplitWhen

    Split a list every time an element satisfies a test

  • StringDisjointQ

    Test if two strings have no common characters

  • StringFunction

    Use functions meant for lists on strings

  • StringIntersectingQ

    Test if two strings have any common characters

  • StringIntersection

    Find the characters common to multiple strings

  • StringOverlaps

    Find substrings that overlap between strings

  • StringPatternQ

    Test a valid string pattern

  • StringSort

    Sort the characters in a string

  • StringSwitch

    Switch but for strings

  • StringTuples

    Generate a list of all tuples of characters from a string

  • StringUnion

    Find the distinct characters in multiple strings

  • StringWithinQ

    Test if a string pattern is within an expression

  • SymbolCases

    Find symbols whose definition contains specified pattern

  • SymbolsWithAttribute

    Find and list all symbols with a particular attribute

  • SymbolsWithOption

    Find and list all symbols with a particular option

  • 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

  • TableWhile

    Create tables of values while given criteria hold

  • TakeBefore

    Take elements before the specified element in an expression

  • TakeLarger

    Take values larger than a threshold in a list or association

  • TakeSmaller

    Take values smaller than a threshold in a list or association

  • Terse

    An operator form of Short

  • Uncurry

    Reverse a Curry operation

  • UnevaluatedAssociation

    Construct an association without evaluating any of the keys or values

  • UnionTo

    Equivalent to Union but redefines the first argument to the result

  • UniqueCases

    Similar to Cases, but removes duplicates

  • UniqueContext

    Provide a new context that contains no symbols

  • UnsortedComplement

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

  • Unthread

    A partial inverse for Thread

  • Until

    Similar to While, but it performs the action before the test

  • ValueMap

    Similar to AssociationMap but maps over a given set of values to obtain keys rather than vice versa

  • ValueMapIndexed

    Create an association from a set of values, using a map-indexed function on those values to form the keys

  • When

    An operator form of Which

  • WhenNot

    The opposite of When