@std/prelude

Getting Started

implicit scope
Symbols in @std/prelude are available in every Rasmalai source file out-of-the-box without an explicit import. Explicit imports are supported for disambiguation.

No install step: the module ships inside the compiler. Import what you need:

.rnx
// @std/prelude is implicit: no import required

Quickstart

Copy this into a file or open it straight in the playground:

.rnx
print("no import needed");
let found = [1, 2, 3].find((n) => n > 1);
assert("abc".contains("b"), "prelude");
print(found.unwrap(), typeOf(found));