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

📄 array2-sig.sml

📁 这是我们参加06年全国开源软件的竞赛作品
💻 SML
字号:
(* array2-sig.sml * * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.  See COPYRIGHT file for details. * * Two-dimensional arrays. *)signature ARRAY2 =  sig    type 'a array2    val array : (int * int * 'a) -> 'a array2	(* array(n,m,x) creates an n*m array initialized to x.	 * Raises Size, if m or n is < 0.	 *)    val tabulate : (int * int * ((int * int) -> 'a)) -> 'a array2	(* tabulate(n,m,f) creates an n*m array, where the (i,j) element	 * is initialized to f(i,j).  Raises Size, if m or n is < 0.	 *)    val sub : ('a array2 * int * int) -> 'a	(* sub(a,i,j) returns the (i,j) element. Raises Subscript if i or j	 * is out of range.	 *)    val update : ('a array2 * int * int * 'a) -> unit	(* update(a,i,j,x) sets the (i,j) element to x. Raises Subscript if	 * i or j is out of range.	 *)    val dimensions : 'a array2 -> (int * int)	(* return the size of the array *)    val row : ('a array2 * int) -> 'a Array.array	(* project a row of the array. *)    val column : ('a array2 * int) -> 'a Array.array	(* project a column of the array. *)  end (* ARRAY2 *)

⌨️ 快捷键说明

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