shithub: mc

ref: b744c317feeac6ba0b96d6d223e8acb3f2004b03
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
}