unix-env-sig.sml

来自「这是我们参加06年全国开源软件的竞赛作品」· SML 代码 · 共 40 行

SML
40
字号
(* unix-env-sig.sml * * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.  See COPYRIGHT file for details. * * A UNIX environment is a list of strings of the form "name=value", where * the "=" character does not appear in name. * NOTE: binding the user's environment as an ML value and then exporting the * ML image can result in incorrect behavior, since the environment bound in the * heap image may differ from the user's environment when the exported image * is used. *)signature UNIX_ENV =  sig    val getFromEnv : (string * string list) -> string option	(* return the value, if any, bound to the name. *)    val getValue : {name : string, default : string, env : string list} -> string	(* return the value bound to the name, or a default value *)    val removeFromEnv : (string * string list) -> string list	(* remove a binding from an environment *)    val addToEnv : (string * string list) -> string list	(* add a binding to an environment, replacing an existing binding	 * if necessary.	 *)    val environ : unit -> string list	(* return the user's environment *)    val getEnv : string -> string option	(* return the binding of an environment variable in the	 * user's environment.	 *)  end; (* UNIX_ENV *)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?