@@ -684,7 +684,7 @@ var $IndexedSequence = IndexedSequence;
684
684
if ( skipSeq !== seq ) {
685
685
skipSeq . get = function ( index , notSetValue ) {
686
686
index = wrapIndex ( this , index ) ;
687
- return index < 0 ? notSetValue : seq . get ( index + amount , notSetValue ) ;
687
+ return index >= 0 ? seq . get ( index + amount , notSetValue ) : notSetValue ;
688
688
} ;
689
689
}
690
690
return skipSeq ;
@@ -705,7 +705,7 @@ var $IndexedSequence = IndexedSequence;
705
705
if ( takeSeq !== seq ) {
706
706
takeSeq . get = function ( index , notSetValue ) {
707
707
index = wrapIndex ( this , index ) ;
708
- return index < amount ? seq . get ( index , notSetValue ) : notSetValue ;
708
+ return index >= 0 && index < amount ? seq . get ( index , notSetValue ) : notSetValue ;
709
709
} ;
710
710
}
711
711
return takeSeq ;
@@ -3270,8 +3270,7 @@ var $Range = Range;
3270
3270
return 'Range [ ' + this . _start + '...' + this . _end + ( this . _step > 1 ? ' by ' + this . _step : '' ) + ' ]' ;
3271
3271
} ,
3272
3272
get : function ( index , notSetValue ) {
3273
- index = wrapIndex ( this , index ) ;
3274
- return this . has ( index ) ? this . _start + index * this . _step : notSetValue ;
3273
+ return this . has ( index ) ? this . _start + wrapIndex ( this , index ) * this . _step : notSetValue ;
3275
3274
} ,
3276
3275
contains : function ( searchValue ) {
3277
3276
var possibleIndex = ( searchValue - this . _start ) / this . _step ;
0 commit comments