Skip to content

Commit

Permalink
Apply reviews.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrm committed Nov 28, 2024
1 parent af76439 commit 170167c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bounded_stack.mli
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ val try_push : 'a t -> 'a -> bool
(** [try_push stack element] tries to add [element] to the top of the [stack].
Returns [true] if the element was successfully added, or [false] if the
stack is full.
🐌 This is linear-time operation on the size of [elements]. *)
*)

val push_all_exn : 'a t -> 'a list -> unit
(** [push_all_exn stack elements] adds all [elements] to the top of the [stack].
Expand All @@ -123,6 +122,8 @@ val try_push_all : 'a t -> 'a list -> bool
[stack]. Returns [true] if the elements were successfully added, or [false] if
the stack is full.
🐌 This is a linear-time operation on the size of [elements].
{[
# let t : int t = create ()
val t : int t = <abstr>
Expand All @@ -147,7 +148,7 @@ bottom.
val of_seq : ?capacity:int -> 'a Seq.t -> 'a t
(** [of_seq seq] creates a stack from a [seq]. It must be finite.
@raises Full if the [list] is longer than the capacity of the stack.
@raises Full if the [seq] is longer than the capacity of the stack.
🐌 This is a linear-time operation.
*)
Expand Down

0 comments on commit 170167c

Please sign in to comment.