The SML/NJ Library Reference Manual


The BIT_ARRAY signature


Synopsis

signature BIT_ARRAY

Interface

include MONO_ARRAY
sharing type elem = bool
val fromString : string -> array
val bits : (int * int list) -> array
val getBits : array -> int list
val toString : array -> string
val isZero : array -> bool
val extend0 : (array * int) -> array
val extend1 : (array * int) -> array
val eqBits : (array * array) -> bool
val equal : (array * array) -> bool
val andb : (array * array * int) -> array
val orb : (array * array * int) -> array
val xorb : (array * array * int) -> array
val notb : array -> array
val lshift : (array * int) -> array
val rshift : (array * int) -> array
val setBit : (array * int) -> unit
val clrBit : (array * int) -> unit
val union : array -> array -> unit
val intersection : array -> array -> unit
val complement : array -> unit

Description

include MONO_ARRAY

fromString s
explain the use and semantics of fromString HERE.

bits (i, l)
explain the use and semantics of bits HERE.

getBits arr
explain the use and semantics of getBits HERE.

toString arr
explain the use and semantics of toString HERE.

isZero arr
explain the use and semantics of isZero HERE.

extend0 (arr, i)
explain the use and semantics of extend0 HERE.

extend1 (arr, i)
explain the use and semantics of extend1 HERE.

eqBits (arr, arr2)
explain the use and semantics of eqBits HERE.

equal (arr, arr2)
explain the use and semantics of equal HERE.

andb (arr, arr2, i)
explain the use and semantics of andb HERE.

orb (arr, arr2, i)
explain the use and semantics of orb HERE.

xorb (arr, arr2, i)
explain the use and semantics of xorb HERE.

notb arr
explain the use and semantics of notb HERE.

lshift (arr, i)
explain the use and semantics of lshift HERE.

rshift (arr, i)
explain the use and semantics of rshift HERE.

setBit (arr, i)
explain the use and semantics of setBit HERE.

clrBit (arr, i)
explain the use and semantics of clrBit HERE.

union arr arr2
explain the use and semantics of union HERE.

intersection arr arr2
explain the use and semantics of intersection HERE.

complement arr
explain the use and semantics of complement HERE.



[ INDEX | TOP | Parent | Root ]

Last Modified May 29, 1996
Copyright © 1996 AT&T Research