AppendTo[s, elem] appends elem to the value of s, and resets s to the result.
PrependTo[s, elem] prepends elem to the value of s, and resets s to the result.
BreadthFirstScan[g, s, {"event_1" -> f_1, "event_2" -> f_2, ...}] performs a breadth-first scan (bfs) of the graph g starting at the vertex s and evaluates f_i whenever ...
Append
(Built-in Mathematica Symbol) Append[expr, elem] gives expr with elem appended.
TimeUsed[] gives the total number of seconds of CPU time used so far in the current Mathematica session.
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 ...
Mathematica's highly optimized architecture makes it easy to create programs that are both elegant and efficient. Its symbolic character lets you immediately run and test ...
Print
(Built-in Mathematica Symbol) Print[expr] prints expr as output.
Scan
(Built-in Mathematica Symbol) Scan[f, expr] evaluates f applied to each element of expr in turn. Scan[f, expr, levelspec] applies f to parts of expr specified by levelspec.
Catch
(Built-in Mathematica Symbol) Catch[expr] returns the argument of the first Throw generated in the evaluation of expr. Catch[expr, form] returns value from the first Throw[value, tag] for which form ...