Data.Index

lib/Data/Index.gob

No module comment.

class Index c
fun get : [Index c] fun(c, Key c) -> Value c
type Key c
type Value c
class SetIndex c : Index c

Separate from Index so that a type can be read by key without being writable: xs[i] asks only for Index, and xs[i] = v for this.

fun set : [SetIndex c] fun(c, Key c, Value c) -> Unit
class Length c
fun len : [Length c] fun(c) -> Int
instance Index (Prim.Array a)
instance SetIndex (Prim.Array a)
instance Length (Prim.Array a)