Added a few functions for drawing histograms into the Oak standard library, and now I can do this!
std.range(100000) |>
std.map(random.normal) |>
debug.histo({ bars: 20, label: :start, cols: 50 })
... which renders ...
7 ▏
38 ▏
175 ▌
574 █▋
1740 █████
3951 ███████████▍
7804 ██████████████████████▌
12066 ██████████████████████████████████▉
15913 ██████████████████████████████████████████████
17296 ██████████████████████████████████████████████████
15783 █████████████████████████████████████████████▋
11614 █████████████████████████████████▋
7160 ████████████████████▊
3562 ██████████▎
1527 ████▍
577 █▋
159 ▌
40 ▏
12 ▏
1 ▏