Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
6
Task/Abstract-type/Standard-ML/abstract-type-1.ml
Normal file
6
Task/Abstract-type/Standard-ML/abstract-type-1.ml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
signature QUEUE = sig
|
||||
type 'a queue
|
||||
val empty : 'a queue
|
||||
val enqueue : 'a -> 'a queue -> 'a queue
|
||||
val dequeue : 'a queue -> ('a * 'a queue) option
|
||||
end
|
||||
6
Task/Abstract-type/Standard-ML/abstract-type-2.ml
Normal file
6
Task/Abstract-type/Standard-ML/abstract-type-2.ml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
signature LIST_QUEUE = sig
|
||||
type 'a queue = 'a list
|
||||
val empty : 'a queue
|
||||
val enqueue : 'a -> 'a queue -> 'a queue
|
||||
val dequeue : 'a queue -> ('a * 'a queue) option
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue