]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/bloom-filters/bloom-filters.factor
factor: trim using lists
[factor.git] / basis / bloom-filters / bloom-filters.factor
index 26e2aa97cf0d8e207c92f82a36479ab57d109e18..1296f8e408ea91ab7540f5456752094e549cf5ef 100644 (file)
@@ -1,9 +1,8 @@
 ! Copyright (C) 2009 Alec Berryman.
 ! 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] ;
+USING: accessors arrays bit-arrays kernel kernel.private
+layouts math math.functions math.order math.private
+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 )