Skip to main content

Motoko core package

  • Array Provides extended utility functions on immutable Arrays (values of type [T]).
  • Blob Module for working with Blobs (immutable sequences of bytes).
  • Bool Boolean type and operations.
  • CertifiedData Certified data.
  • Char Module for working with Characters (Unicode code points).
  • Cycles Managing cycles within actors in the Internet Computer Protocol (ICP).
  • Debug Utility functions for debugging.
  • Error Error values and inspection.
  • Float Double precision (64-bit) floating-point numbers in IEEE 754 representation.
  • Func Functions on functions, creating functions from simpler inputs.
  • Int Signed integer numbers with infinite precision (also called big integers).
  • Int16 Utility functions on 16-bit signed integers.
  • Int32 Utility functions on 32-bit signed integers.
  • Int64 Utility functions on 64-bit signed integers.
  • Int8 Utility functions on 8-bit signed integers.
  • InternetComputer Low-level interface to the Internet Computer.
  • Iter Utilities for Iter (iterator) values.
  • List A mutable list data structure with efficient random access and dynamic resizing.
  • Map An imperative key-value map based on order/comparison of the keys.
  • Nat Natural numbers with infinite precision.
  • Nat16 Utility functions on 16-bit unsigned integers.
  • Nat32 Utility functions on 32-bit unsigned integers.
  • Nat64 Utility functions on 64-bit unsigned integers.
  • Nat8 Utility functions on 8-bit unsigned integers.
  • Option Typesafe nullable values.
  • Order Utilities for Order (comparison between two values).
  • Principal Module for interacting with Principals (users and canisters).
  • Queue A mutable double-ended queue of elements.
  • Random Random number generation.
  • Region Byte-level access to isolated, virtual stable memory regions.
  • Result Module for error handling with the Result type.
  • Runtime Runtime utilities.
  • Set Imperative (mutable) sets based on order/comparison of elements.
  • Stack A mutable stack data structure.
  • Text Utility functions for Text values.
  • Time System time utilities and timers.
  • Timer Timers for one-off or periodic tasks. Applicable as part of the default mechanism.
  • Tuples Contains modules for working with tuples of different sizes.
  • Types
  • VarArray Provides extended utility functions on mutable Arrays ([var]).
  • internal/BTreeHelper
  • internal/PRNG Collection of pseudo-random number generators
  • pure/List Purely-functional, singly-linked lists.
  • pure/Map Immutable, ordered key-value maps.
  • pure/Queue Double-ended queue of a generic element type T.
  • pure/RealTimeQueue Double-ended immutable queue with guaranteed O(1) push/pop operations (caveat: high constant factor).
  • pure/Set Pure (immutable) sets based on order/comparison of elements.