problemutils.extensions
Extensions
Extensions
Logs any object a in the console without the "[*]" prefix and then returns the object without modifying it.
Logs any object a in the console without the "[*]" prefix and then returns the object without modifying it.
Logs any object a in the console and then returns the object without modifying it.
Logs any object a in the console and then returns the object without modifying it.
Logs any attribute of object a in the console and then returns the object without modifying it.
Logs any attribute of object a in the console and then returns the object without modifying it.
Logs any object a in the console if the condition p is satisfied and then returns the object without modifying it.
Logs any object a in the console if the condition p is satisfied and then returns the object without modifying it.
Recursively applies a function f: A => A on any object a until f(a) is equal to a.
Recursively applies a function f: A => A on any object a until f(a) is equal to a.
Recursively applies a function f: A => A on any object a until the predicate p is satisfied.
Recursively applies a function f: A => A on any object a until the predicate p is satisfied.
Performs a flood-fill using a neighbour function f: A => IterableOnce[A]. Returns a set of all elements generated by the function with the starting point a.
Performs a flood-fill using a neighbour function f: A => IterableOnce[A]. Returns a set of all elements generated by the function with the starting point a.
Computes the cross product of 2 vectors of length 3.
Computes the cross product of 2 vectors of length 3.
Computes the dot product of 2 vectors of the same length.
Computes the dot product of 2 vectors of the same length.
Reshapes this sequence into a problemutils.classes.Matrix of the given width and height.
Reshapes this sequence into a problemutils.classes.Matrix of the given width and height.