RosettaCodeData/Task/Binary-digits/Gleam/binary-digits.gleam
2026-04-30 12:34:36 -04:00

9 lines
199 B
Gleam

import gleam/format
import gleam/list
pub fn main() -> Nil {
// Using format library: https://hexdocs.pm/format/gleam/format.html
[5, 50, 9000]
|> list.map(format.printf("~.2B~n", _))
Nil
}