shithub: mc

ref: 13e55845018e40a4e943891a2cb371bc2a9cd572
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
}