Wolfram Research

Category

Programming Utilities

119 items

  • AbortOnMessage

    Abort an evaluation as soon as a message is generated

  • AddCodeCompletion

    Adds code completion to your function’s arguments

  • AppendSequence

    Append multiple items to an expression at once

  • ArgumentCount

    Count the number of arguments a pure function or compiled function takes

  • AsynchronousDynamicModule

    A wrapper function for dynamic modules which causes a placeholder to be shown during initialization

  • BenchmarkPlot

    Plot the timings of a benchmark

  • BinarySerializeWithDefinitions

    Serialize an expression along with any dependent definitions

  • BinListsBy

    Bins data in to lists based on applying a function to each item.

  • BitFlip

    Flip an individual bit in an integer (0 to 1 and 1 to 0)

  • BoolEval

    Fast vectorized evaluation of array inequalities

  • BytesToQuantity

    Convert a byte count to a quantity of bytes in an appropriate unit

  • CacheTo

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

  • CatchAll

    Get $Aborted for uncaught Throw or Abort in an evaluation

  • CatchFailure

    Catches any Failure object thrown by an enclosed ThrowFailure evaluation

  • ChannelMessages

    Send relevant data to a channel object when a message occurs

  • CheckMatch

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

  • ChromaticNumber

    Compute the vertex chromatic number of a graph

  • CloudPutByHash

    CloudPut to a location determined by the hash of an expression

  • CloudResourceFunction

    Access functions deployed to your own or another user’s Wolfram Cloud account that are not in the official function repository

  • CompressWithDefinitions

    Compress an expression, along with any needed definitions, so that it can be used in another session

  • ContextDependencies

    Determine how symbols in a first context depend on symbols in a second context

  • ContextModule

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

  • CopyDefinitions

    Copy the definitions of one symbol to another

  • CreatePackageEventHandler

    Create an event handler that evaluates an expression when a package is loaded

  • DatasetForm

    Display data formatted like a dataset

  • 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

  • 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

  • DynamicMap

    Interruptibility map a function over a list while showing a progress indicator

  • EchoEvaluate

    Debug applications of a function more easily by printing its arguments and the result

  • EchoNormal

    Print the code in InputForm unformatted

  • EchoSet

    Set a value to a symbol and print them

  • EchoTiming

    Print the timing for an evaluation and return the result

  • EnsureDirectory

    Ensure that a directory exists, no matter what

  • EnsureFilePath

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

  • EvaluateBenchmark

    Measure the evaluation timings of a function on a given set of inputs

  • EvaluationTiming

    Get a full timing report for functions evaluated during an evaluation

  • Excise

    Remove enclosed arguments

  • ExpressionBag

    A data structure meant for accumulating items efficiently

  • ExpressionToFunction

    Convert an expression to a pure function by specifying which symbols should be used as input arguments

  • ExpressionViewer

    A dynamic tool that helps visualize the structure of an expression

  • FailOnMessage

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

  • FindRanges

    Find continuous ranges in a list of integers

  • FormatAsResourceFunction

    Format a symbol as a ResourceFunction in outputs

  • FromRecursiveRewrite

    Recover expressions using RecursiveRewrite generated rules

  • FullSymbolName

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

  • GetKeyValuePattern

    Creates a suitable KeyValuePattern from an example association

  • GetUnboundSymbols

    Get all the non-local symbols that appear in an expression

  • GraphicsBounds

    Get the plot range used in a piece of graphics

  • HasDefinitionsQ

    Check if a symbol has definitions associated with it

  • HoldArguments

    Construct a function from another function that holds certain arguments

  • ImportOnce

    A version of Import which uses a cache of the result unless the source file has changed

  • 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

  • InterpretedTrueQ

    Determine if a value should be interpreted as true

  • JoinTo

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

  • LookupCases

    Look up all values of a key in a nested association

  • MachineIntegerQ

    Check if a number falls into the range of machine-sized integers for your computer

  • 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

  • MessagedQ

    Test if a message is issued during an evaluation

  • MonitoredTestReport

    Generate a TestReportObject with dynamic progress

  • 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

  • PlaceholderImage

    Create a placeholder image of a specified dimension

  • PossibleNameQ

    Test if an expression corresponds to a valid symbol name

  • PrefixQ

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

  • PrettyForm

    Print human-readable form of complex expressions

  • PrintDefinitionCases

    Find definitions for symbols in a context using a pattern, getting highlighted occurrences of it

  • PrintDefinitions

    Browse a list of hyperlinked definitions associated with a symbol

  • PrintMessage

    Print expressions to the messages window

  • ProgressIndicatorEstimator

    Display progress of a computation together with estimated completion time

  • 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

  • PythonPackageInstalledQ

    Test if the Python package can be accessed in your session

  • QueryTreeForm

    Present a query as a tree

  • QuietCheck

    Combines the functionalities of Quiet and Check in one function

  • RandomPartChoice

    Choose random parts of an expression

  • RealToHexString

    Give a string representing the hexadecimal form of a real number

  • ReapAssociation

    Equivalent to Reap, but returns an association with tags as keys

  • RecursiveRewrite

    Rewrite an expression replacing repeatedly by strings

  • ReplaceAllUnheld

    Apply replacement rules to evaluated parts of expression

  • ReplaceContext

    Transform an expression by replacing all symbols in one context with symbols of the same name in another context

  • ResetDataset

    Force a reanalysis of the types contained in a Dataset, sometimes leading to a different presentation of the data

  • ResourceFunctionDefinitionViewer

    View the definitions of a resource function along with its dependencies

  • ResourceFunctionMessage

    Print a labeled message from ResourceFunction with contexts hidden

  • ResourceFunctionSymbols

    Get a list of the symbols used in the definition of a resource function

  • RootSymbol

    Recursively take the head of an expression

  • RunAfterLoading

    Evaluate an expression when a package finishes loading

  • RunBeforeLoading

    Evaluate an expression when a package is first loaded

  • RunOnQuit

    Set an evaluation to run when the Wolfram Language kernel session is terminated

  • SameAsQ

    An operator form of SameQ

  • SelectFirstIndex

    Find the index of the first element satisfying a criterion

  • SerializeWithDefinitions

    Serialize an expression along with any needed definitions so that it can be used in another session

  • SessionInformation

    Get an association containing various session-related information

  • SetTo

    Use as an operator form of Set

  • SetUnless

    Initialize a value unless it already satisfies a given condition

  • ShowQuotes

    Style the output so that quotation marks (as string characters) appear

  • SimplifyRepeatedSubexpressions

    Replace repeated subexpressions in an expression with new symbols

  • Slice

    An operator form of Part

  • StringPatternQ

    Test a valid string pattern

  • SwapSymbolValues

    Swap values of symbols using a temporary variable

  • SymbolCases

    Find symbols whose definition contains specified pattern

  • SymbolDependencies

    Get a list of symbols that an expression depends on

  • SymbolDependencyGraph

    Create a graph of symbol dependencies

  • SymbolsWithAttribute

    Find and list all symbols with a particular attribute

  • SymbolsWithOption

    Find and list all symbols with a particular option

  • ThrowFailure

    Throw a Failure object to the nearest enclosing CatchFailure

  • ToAssociations

    Recursively replace lists of rules with associations

  • ToFullString

    Create a string of the FullForm of an expression with fully qualified symbol names

  • TraceInteractive

    Trace an evaluation with an interface that allows interactive debugging

  • TraceLoading

    Monitor file-loading events during the evaluation of an expression

  • UnionTo

    Equivalent to Union but redefines the first argument to the result

  • UniqueContext

    Provide a new context that contains no symbols

  • Until

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

  • WithMessageHandler

    Apply a custom handler to messages generated during evaluation

  • WolframMark

    Run the standard Wolfram Language benchmark

  • WriteUnitTest

    Write a formatted and readable unit test for any input