← Back to the index

Module std/bool.vv

The bool module provides standard utilities for boolean values.

Example:

import bool from "std/bool.vv"

console.print(bool.to_string(true)) // "true"

Table of Contents

Exports

fun to_string(b) extern "native"

Converts a boolean value to its string representation.

Example:

let s = bool.to_string(true)  // "true"
let t = bool.to_string(false) // "false"