diff --git a/basis/sorting/insertion/insertion.factor b/basis/sorting/insertion/insertion.factor index 0615893f07..a1752b6742 100644 --- a/basis/sorting/insertion/insertion.factor +++ b/basis/sorting/insertion/insertion.factor @@ -1,11 +1,11 @@ -USING: locals sequences kernel math ; +USING: kernel locals math sequences sequences.private ; IN: sorting.insertion = [ - n n 1 - seq exchange + n n 1 - [ seq nth-unsafe quot call ] bi@ >= [ + n n 1 - seq exchange-unsafe seq quot n 1 - insert ] unless ] unless ; inline recursive