Skip to main content

Standard Library Overview

The mType standard library is distributed as a separate repo: matan45/mTypeLib. Its sources are mirrored under mType/tests/testFiles/lib/ so the test runner can import them.

Imports against the standard library look like:

import * from "lib/collections/ArrayList.mt";
import { Int } from "lib/primitives/Int.mt";
import * from "lib/exceptions/Exception.mt";

Modules

GroupModules
CoreObject, Iterable, Iterator, Function, BiFunction, Consumer, Predicate, Comparator, BinaryOperator
PrimitivesInt, Float, Bool, String, Box<T>
CollectionsArrayList<T>, HashMap<K,V>, HashSet<T>, LinkedList<T>, Queue<T>, Stack<T>
Stream APIStream<T> with filter, map, flatMap, distinct, sorted, limit, skip, reduce, forEach
ExceptionsException, RuntimeException, IllegalArgumentException, IndexOutOfBoundsException, NullPointerException, ClassNotFoundException
MathVec2f, Vec3f, Vec4f, Matrix3f, Matrix4f, Quaternion, Random
NetworkHttp, HttpRequest, HttpResponse, TcpSocket, TcpServer, JsonApi
ReflectionClass, Method, Field, Constructor, Annotation
JSONJson
Testing — mtestTestSuite, TestRunner, Assertions, lifecycle annotations (@Test, @BeforeEach, …)

Detailed pages: