mirror of
https://github.com/achlipala/frap.git
synced 2024-11-28 07:16:20 +00:00
Tiny copy-editing
This commit is contained in:
parent
c2f56e1b5f
commit
254e2aedc6
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ Module Algebraic.
|
||||||
Definition empty A : t A := [].
|
Definition empty A : t A := [].
|
||||||
Definition enqueue A (q : t A) (x : A) : t A := q ++ [x].
|
Definition enqueue A (q : t A) (x : A) : t A := q ++ [x].
|
||||||
|
|
||||||
(* [dequeue] is now constant time, with no recursion and just a single
|
(* [dequeue] is now constant-time, with no recursion and just a single
|
||||||
* pattern match. *)
|
* pattern match. *)
|
||||||
Definition dequeue A (q : t A) : option (t A * A) :=
|
Definition dequeue A (q : t A) : option (t A * A) :=
|
||||||
match q with
|
match q with
|
||||||
|
|
Loading…
Reference in a new issue