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/branches/FLINT/src/compiler/PervEnv/Basis/vector.sig
ViewVC logotype

View of /sml/branches/FLINT/src/compiler/PervEnv/Basis/vector.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 245 - (download) (as text) (annotate)
Sat Apr 17 18:47:12 1999 UTC (20 years, 5 months ago) by monnier
File size: 1022 byte(s)
version 110.16
(* 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$
 *)

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