Additional basic functions.
Swaps the elements in a pair.
swap ( 1, 2 ) == ( 2, 1 )The maximum safe value for an integer, defined as 2^53 - 1. Anything
larger than that and behaviour becomes mathematically unsound.
(maxSafeInteger + 1) == (maxSafeInteger + 2)
== TrueThe minimum safe value for an integer, defined as -(2^53 - 1). Anything
smaller than that, and behaviour becomes mathematically unsound.
(minSafeInteger - 1) == (minSafeInteger - 2)
== TrueChecks if a given integer is within the safe range, meaning it is between
-(2^53 - 1) and 2^53 - 1.
isSafeInteger 5 == True
isSafeInteger maxSafeInteger == True
isSafeInteger (maxSafeInteger + 1) == False
A shorthand for writing 2-tuples. Very commonly used when expressing key/value pairs in CSS or Json encoders.