Misc functions.

fn readall

fn readall*(path: str): str {

Reads file content into a string.

fn stepify

fn stepify*(val, step: th.fu): th.fu {

Snaps a value to step.

fn maxf

fn maxf*(a, b: th.fu): th.fu {

fn minf

fn minf*(a, b: th.fu): th.fu {