]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/bloom-filters/bloom-filters.factor
core/basis/extra: use new math.ranges syntax.
[factor.git] / basis / bloom-filters / bloom-filters.factor
index 26e2aa97cf0d8e207c92f82a36479ab57d109e18..0a279ba8af916fe7b52a285cc8b75f4b70456adb 100644 (file)
@@ -2,8 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays bit-arrays fry kernel kernel.private
 layouts locals math math.functions math.order math.private
-multiline sequences sequences.private typed ;
-FROM: math.ranges => [1,b] ;
+math.ranges multiline sequences sequences.private typed ;
 
 IN: bloom-filters
 
@@ -61,7 +60,7 @@ ERROR: invalid-capacity capacity ;
 
 ! 100 hashes ought to be enough for anybody.
 : #hashes-range ( -- range )
-    100 [1,b] ;
+    100 [1..b] ;
 
 ! { #hashes #bits }
 : identity-configuration ( -- 2seq )