lib-base.sml

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

SML
38
字号
(* lib-base.sml * * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.  See COPYRIGHT file for details. *)structure LibBase : LIB_BASE =  struct  (* raised to report unimplemented features *)    exception Unimplemented of string  (* raised to report internal errors *)    exception Impossible of string  (* raised by searching operations *)    exception NotFound  (* raise the exception Fail with a standard format message. *)    fun failure {module, func, msg} =	  raise (Fail(concat[module, ".", func, ": ", msg]))    val version = {	    date = "June 1, 1996", 	    system = "SML/NJ Library",	    version_id = [1, 0]	  }    fun f ([], l) = l      | f ([x : int], l) = (Int.toString x)::l      | f (x::r, l) = (Int.toString x) :: "." :: f(r, l)    val banner = concat (	    #system version :: ", Version " ::	    f (#version_id version, [", ", #date version]))  end (* LibBase *)

⌨️ 快捷键说明

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