TFL/utils.sig
author paulson
Wed, 28 Jun 2000 10:37:52 +0200
changeset 9158 084abf3d0eff
parent 3391 5e45dd3b64e9
permissions -rw-r--r--
declaring and using cla_make_elim
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3302
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     1
(*  Title:      TFL/utils
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     2
    ID:         $Id$
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     3
    Author:     Konrad Slind, Cambridge University Computer Laboratory
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     4
    Copyright   1997  University of Cambridge
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     5
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     6
Basic utilities
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     7
*)
404fe31fd8d2 New headers and other minor changes
paulson
parents: 3245
diff changeset
     8
2112
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
     9
signature Utils_sig =
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    10
sig
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    11
  exception ERR of {module:string,func:string, mesg:string}
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    12
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    13
  val can   : ('a -> 'b) -> 'a -> bool
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    14
  val holds : ('a -> bool) -> 'a -> bool
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    15
  val C : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    16
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    17
  val itlist : ('a -> 'b -> 'b) -> 'a list -> 'b -> 'b
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    18
  val rev_itlist : ('a -> 'b -> 'b) -> 'a list -> 'b -> 'b
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    19
  val end_itlist : ('a -> 'a -> 'a) -> 'a list -> 'a
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    20
  val itlist2 :('a -> 'b -> 'c -> 'c) -> 'a list -> 'b list -> 'c -> 'c
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    21
  val pluck : ('a -> bool) -> 'a list -> 'a * 'a list
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    22
  val zip3 : 'a list -> 'b list -> 'c list -> ('a*'b*'c) list
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    23
  val take  : ('a -> 'b) -> int * 'a list -> 'b list
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    24
  val sort  : ('a -> 'a -> bool) -> 'a list -> 'a list
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    25
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    26
end;
3902e9af752f Konrad Slind's TFL
paulson
parents:
diff changeset
    27