We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original bug ID: 1148 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general)
Hi,
I suggest to add to sdtlib/stack.ml:
let empty s = match s.c with | [] -> true | _ -> false
and to stdlib/stack.mli:
val empty : 'a t -> bool (** Test if the stack is empty. *)
Bye,
Hendrik
The text was updated successfully, but these errors were encountered:
Comment author: administrator
Added Stack.is_empty and Queue.is_empty in 3.05. -XL
Sorry, something went wrong.
No branches or pull requests
Original bug ID: 1148
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi,
I suggest to add to sdtlib/stack.ml:
let empty s =
match s.c with
| [] -> true
| _ -> false
and to stdlib/stack.mli:
val empty : 'a t -> bool
(** Test if the stack is empty. *)
Bye,
Hendrik
The text was updated successfully, but these errors were encountered: