⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 char-map-sig.sml

📁 这是我们参加06年全国开源软件的竞赛作品
💻 SML
字号:
(* char-map-sig.sml * * COPYRIGHT (c) 1994 by AT&T Bell Laboratories.  See COPYRIGHT file for details. * * Fast, read-only, maps from characters to values. * * AUTHOR:  John Reppy *	    AT&T Bell Laboratories *	    Murray Hill, NJ 07974 *	    jhr@research.att.com *)signature CHAR_MAP =  sig    type 'a char_map	(* a finite map from characters to 'a *)    val mkCharMap : {default : 'a, bindings : (string * 'a) list} -> 'a char_map	(* make a character map which maps the bound characters to their	 * bindings and maps everything else to the default value.	 *)    val mapChr : 'a char_map -> char -> 'a	(* map the given character *)    val mapStrChr : 'a char_map -> (string * int) -> 'a	(* (mapStrChr c (s, i)) is equivalent to (mapChr c (String.sub(s, i))) *)  end (* CHAR_MAP *)

⌨️ 快捷键说明

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