forked from moonbitlang/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeque.mbti
63 lines (55 loc) · 1.9 KB
/
deque.mbti
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package moonbitlang/core/deque
// Values
fn from_array[A](Array[A]) -> T[A]
fn from_iter[A](Iter[A]) -> T[A]
fn new[A](capacity~ : Int = ..) -> T[A]
fn of[A](FixedArray[A]) -> T[A]
// Types and methods
type T
impl T {
as_views[A](Self[A]) -> (ArrayView[A], ArrayView[A])
back[A](Self[A]) -> A?
capacity[A](Self[A]) -> Int
clear[A](Self[A]) -> Unit
contains[A : Eq](Self[A], A) -> Bool
copy[A](Self[A]) -> Self[A]
each[A](Self[A], (A) -> Unit) -> Unit
eachi[A](Self[A], (Int, A) -> Unit) -> Unit
filter_map_inplace[A](Self[A], (A) -> A?) -> Unit //deprecated
from_array[A](Array[A]) -> Self[A] //deprecated
from_iter[A](Iter[A]) -> Self[A] //deprecated
front[A](Self[A]) -> A?
is_empty[A](Self[A]) -> Bool
iter[A](Self[A]) -> Iter[A]
iter2[A](Self[A]) -> Iter2[Int, A]
length[A](Self[A]) -> Int
map[A, U](Self[A], (A) -> U) -> Self[U]
mapi[A, U](Self[A], (Int, A) -> U) -> Self[U]
new[A](capacity~ : Int = ..) -> Self[A] //deprecated
of[A](FixedArray[A]) -> Self[A] //deprecated
op_equal[A : Eq](Self[A], Self[A]) -> Bool
op_get[A](Self[A], Int) -> A
op_set[A](Self[A], Int, A) -> Unit
pop_back[A](Self[A]) -> A?
pop_back_exn[A](Self[A]) -> Unit //deprecated
pop_front[A](Self[A]) -> A?
pop_front_exn[A](Self[A]) -> Unit //deprecated
push_back[A](Self[A], A) -> Unit
push_front[A](Self[A], A) -> Unit
reserve_capacity[A](Self[A], Int) -> Unit
retain[A](Self[A], (A) -> Bool) -> Unit
retain_map[A](Self[A], (A) -> A?) -> Unit
rev_each[A](Self[A], (A) -> Unit) -> Unit
rev_eachi[A](Self[A], (Int, A) -> Unit) -> Unit
rev_iter[A](Self[A]) -> Iter[A]
rev_iter2[A](Self[A]) -> Iter2[Int, A]
search[A : Eq](Self[A], A) -> Int?
shrink_to_fit[A](Self[A]) -> Unit
to_array[A](Self[A]) -> Array[A]
truncate[A](Self[A], Int) -> Unit
unsafe_pop_back[A](Self[A]) -> Unit
unsafe_pop_front[A](Self[A]) -> Unit
}
impl[A : Show] Show for T[A]
// Type aliases
// Traits