shithub: mc

ref: 80483aa913c9f4bc672f11eccaab0496ec6dec7c
dir: /libstd/env.myr/

View raw version
use sys

use "extremum.use"
use "option.use"
use "sleq.use"

pkg std =
	const getenv :	(name : byte[:] -> option(byte[:]))
	const getenvv :	(name : byte[:], default : byte[:] -> byte[:])
;;

const getenv = {name
	-> `None
}

const getenvv = {name, default
	-> default
}