@@ -35,7 +35,7 @@ export function begin<T>(container: Array<T>): Vector.Iterator<T>;
35
35
export function begin ( container : any ) : any
36
36
{
37
37
if ( container instanceof Array )
38
- container = Vector . _Capsule ( container ) ;
38
+ container = Vector . wrap ( container ) ;
39
39
40
40
return container . begin ( ) ;
41
41
}
@@ -56,7 +56,7 @@ export function end<T>(container: Array<T>): Vector.Iterator<T>;
56
56
export function end ( container : any ) : any
57
57
{
58
58
if ( container instanceof Array )
59
- container = Vector . _Capsule ( container ) ;
59
+ container = Vector . wrap ( container ) ;
60
60
61
61
return container . end ( ) ;
62
62
}
@@ -84,7 +84,7 @@ export function inserter
84
84
( container : Array < any > | _IInsert < any > , it : IForwardIterator < any , any > ) : InsertIterator < any , any >
85
85
{
86
86
if ( container instanceof Array )
87
- container = Vector . _Capsule ( container ) ;
87
+ container = Vector . wrap ( container ) ;
88
88
89
89
return new InsertIterator ( container , it ) ;
90
90
}
@@ -120,7 +120,7 @@ export function back_inserter<T>
120
120
( source : Array < T > | _IPushBack < T > ) : BackInsertIterator < T , any >
121
121
{
122
122
if ( source instanceof Array )
123
- source = Vector . _Capsule ( source ) ;
123
+ source = Vector . wrap ( source ) ;
124
124
125
125
return new BackInsertIterator ( source ) ;
126
126
}
@@ -160,7 +160,7 @@ export function rbegin<T>(container: Array<T>): Vector.ReverseIterator<T>;
160
160
export function rbegin ( source : any ) : any
161
161
{
162
162
if ( source instanceof Array )
163
- source = Vector . _Capsule ( source ) ;
163
+ source = Vector . wrap ( source ) ;
164
164
165
165
source . rbegin ( ) ;
166
166
}
@@ -183,7 +183,7 @@ export function rend<T>(container: Array<T>): Vector.ReverseIterator<T>;
183
183
export function rend ( source : any ) : any
184
184
{
185
185
if ( source instanceof Array )
186
- source = Vector . _Capsule ( source ) ;
186
+ source = Vector . wrap ( source ) ;
187
187
188
188
source . rend ( ) ;
189
189
}
0 commit comments