Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/compiler/PervEnv/Basis/vector.sig
ViewVC logotype

View of /sml/trunk/src/compiler/PervEnv/Basis/vector.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89 - (download) (as text) (annotate)
Tue May 12 21:54:55 1998 UTC (22 years, 4 months ago) by monnier
File size: 1106 byte(s)
Initial revision
(* vector.sig
 *
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
 *
 *)

signature VECTOR = 
  sig
    eqtype 'a vector

    val maxLen   : int

    val fromList : 'a list -> 'a vector
    val tabulate : int * (int -> 'a) -> 'a vector

    val length   : 'a vector -> int
    val sub      : 'a vector * int -> 'a 
    val extract  : ('a vector * int * int option) -> 'a vector
    val concat   : 'a vector list -> 'a vector

    val app    : ('a -> unit) -> 'a vector -> unit
    val map    : ('a -> 'b) -> 'a vector -> 'b vector
    val foldl  : (('a * 'b) -> 'b) -> 'b -> 'a vector -> 'b
    val foldr  : (('a * 'b) -> 'b) -> 'b -> 'a vector -> 'b

    val appi   :
	  ((int * 'a) -> unit) -> ('a vector * int * int option) -> unit
    val mapi   :
	  ((int * 'a) -> 'b) -> ('a vector * int * int option) -> 'b vector
    val foldli :
	  ((int * 'a * 'b) -> 'b) -> 'b -> ('a vector * int * int option) -> 'b
    val foldri :
	  ((int * 'a * 'b) -> 'b) -> 'b -> ('a vector * int * int option) -> 'b

  end

(*
 * $Log: vector.sig,v $
 * Revision 1.1.1.1  1998/04/08 18:40:03  george
 * Version 110.5
 *
 *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0