Release coccinelle-0.2.2-rc2
[bpt/coccinelle.git] / commons / ocollection / oassocid.ml
CommitLineData
34e49164
C
1open Common
2open Oassoc
3
4(* just a class that behave as fun x -> x *)
ae4735db 5class ['a] oassoc_id xs =
34e49164
C
6 object(o)
7 inherit ['a,'a] oassoc
8
9 method empty = {< >}
10 method add (k,v) = {< >}
11 method iter f = raise Todo
12 method view = raise Todo
13
14 method del (k,v) = {< >}
15 method mem e = raise Todo
16 method null = raise Todo
17
18 method assoc k = k
19 method delkey k = {< >}
91eba41f 20
ae4735db 21 method keys =
91eba41f
C
22 List.map fst (o#tolist)
23
ae4735db 24end