Skip to content

Commit

Permalink
cursors: zip-cursor distance-hint should be min length.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Mar 20, 2016
1 parent a067b13 commit e2a339c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/cursors/cursors.factor
Expand Up @@ -511,7 +511,7 @@ M: zip-cursor cursor= ( cursor cursor -- ? )

M: zip-cursor cursor-distance-hint ( cursor cursor -- n )
[ [ keys>> ] bi@ cursor-distance-hint ]
[ [ values>> ] bi@ cursor-distance-hint ] 2bi max ; inline
[ [ values>> ] bi@ cursor-distance-hint ] 2bi min ; inline

M: zip-cursor inc-cursor ( cursor -- cursor' )
[ keys>> inc-cursor ] [ values>> inc-cursor ] bi <zip-cursor> ; inline
Expand Down

0 comments on commit e2a339c

Please sign in to comment.