Skip to content

clojure.core/bigint

View this page on ClojureDocs

Type: function Added: Clojure 1.3 Examples: 6 Runnable: 1
([x])

Coerce to BigInt

Examples

by Miles on . May have evaluation errors.
by rebcabin on . May have evaluation errors.
by rebcabin on . May have evaluation errors.
by chrm on . May have evaluation errors.
by cloojure on . May have evaluation errors.
by berczeck on

Note by rebcabin

The last example does not seem to work; there seems to be a missing coercion from Clojure BigInt to Java BigInteger. I get

IllegalArgumentException No matching method found: isProbablePrime for class clojure.lang.BigInt  clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:53)

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.