glychee/helpers

Contains helper functions copied from Gleam’s stlib, so that there are no deps on Glychee.

Functions

pub fn gleam_io_println(text text: String) -> Nil

Replaces stdlib’s io.println

pub fn gleam_list_each(list: List(a), f: fn(a) -> b) -> Nil

Replaces stdlib’s list.each.

pub fn gleam_list_map(
  list list: List(a),
  callable callable: fn(a) -> b,
) -> List(b)

Replaces stdlib’s list.map

Search Document