@@ -9,18 +9,18 @@ open Core.Iter.Traits.Iterator
9
9
(* *** Enumerate *)
10
10
(* * This lives in this file for cyclic dependencies reasons. *)
11
11
12
- val iterator_enumerate_contains it ( i : iterator # it )
12
+ val iterator_enumerate_contains it ( i : iterator it )
13
13
: t_contains ( Core.Iter.Adapters.Enumerate. t_Enumerate it ) ( usize * i . f_Item )
14
- val iterator_enumerate_fold it ( i : iterator # it )
14
+ val iterator_enumerate_fold it ( i : iterator it )
15
15
: t_fold ( Core.Iter.Adapters.Enumerate. t_Enumerate it ) ( usize * i . f_Item ) ( iterator_enumerate_contains it i )
16
16
val iterator_enumerate_enumerate it
17
17
: t_enumerate ( Core.Iter.Adapters.Enumerate. t_Enumerate it )
18
- val iterator_enumerate_all it ( i : iterator # it )
18
+ val iterator_enumerate_all it ( i : iterator it )
19
19
: t_all ( Core.Iter.Adapters.Enumerate. t_Enumerate it ) ( usize * i . f_Item )
20
20
val iterator_enumerate_step_by it
21
21
: t_step_by ( Core.Iter.Adapters.Enumerate. t_Enumerate it )
22
22
23
- instance iterator_enumerate it {| i : iterator # it |}: iterator # (Core.Iter.Adapters.Enumerate. t_Enumerate it ) =
23
+ instance iterator_enumerate it {| i : iterator it |}: iterator ( Core.Iter.Adapters.Enumerate. t_Enumerate it ) =
24
24
let open Core.Iter.Adapters.Enumerate in
25
25
{
26
26
f_Item = ( usize * i . f_Item );
@@ -43,20 +43,20 @@ instance iterator_enumerate it {| i: iterator #it |}: iterator #(Core.Iter.Adapt
43
43
(* *** Step_by *)
44
44
(* * This lives in this file for cyclic dependencies reasons. *)
45
45
46
- val iterator_step_by_contains it ( i : iterator # it )
46
+ val iterator_step_by_contains it ( i : iterator it )
47
47
: t_contains ( Core.Iter.Adapters.Step_by. t_StepBy it ) i . f_Item
48
- val iterator_step_by_fold it ( i : iterator # it )
48
+ val iterator_step_by_fold it ( i : iterator it )
49
49
: t_fold ( Core.Iter.Adapters.Step_by. t_StepBy it ) i . f_Item ( iterator_step_by_contains it i )
50
- val iterator_step_by_next it ( i : iterator # it )
50
+ val iterator_step_by_next it ( i : iterator it )
51
51
: t_next ( Core.Iter.Adapters.Step_by. t_StepBy it ) i . f_Item
52
52
val iterator_step_by_enumerate it
53
53
: t_enumerate ( Core.Iter.Adapters.Step_by. t_StepBy it )
54
- val iterator_step_by_all it ( i : iterator # it )
54
+ val iterator_step_by_all it ( i : iterator it )
55
55
: t_all ( Core.Iter.Adapters.Step_by. t_StepBy it ) i . f_Item
56
56
val iterator_step_by_step_by it
57
57
: t_step_by ( Core.Iter.Adapters.Step_by. t_StepBy it )
58
58
59
- unfold instance iterator_step_by it {| i : iterator # it |}: iterator # (Core.Iter.Adapters.Step_by. t_StepBy it ) =
59
+ unfold instance iterator_step_by it {| i : iterator it |}: iterator ( Core.Iter.Adapters.Step_by. t_StepBy it ) =
60
60
let open Core.Iter.Adapters.Enumerate in
61
61
{
62
62
f_Item = i . f_Item ;
@@ -81,7 +81,7 @@ val iterator_slice_enumerate (t: eqtype): t_enumerate (t_Slice t)
81
81
val iterator_slice_step_by ( t : eqtype): t_step_by ( t_Slice t )
82
82
val iterator_slice_all ( t : eqtype): t_all ( t_Slice t ) t
83
83
84
- instance iterator_slice ( t : eqtype): iterator # (t_Slice t ) = {
84
+ instance iterator_slice ( t : eqtype): iterator ( t_Slice t ) = {
85
85
f_Item = t ;
86
86
f_next = iterator_slice_next t ;
87
87
// size_hint = (fun s -> Some (Rust_primitives.Arrays.length s));
@@ -103,7 +103,7 @@ val iterator_array_enumerate (t: eqtype) len: t_enumerate (t_Array t len)
103
103
val iterator_array_step_by ( t : eqtype) len : t_step_by ( t_Array t len )
104
104
val iterator_array_all ( t : eqtype) len : t_all ( t_Array t len ) t
105
105
106
- instance iterator_array ( t : eqtype) len : iterator # (t_Array t len ) = {
106
+ instance iterator_array ( t : eqtype) len : iterator ( t_Array t len ) = {
107
107
f_Item = t ;
108
108
f_next = iterator_array_next t len ;
109
109
// size_hint = (fun (_s: t_Array t len) -> Some len);
0 commit comments