]> gitweb.factorcode.org Git - factor.git/commitdiff
heaps: inline heap-size also.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 14 Sep 2012 19:07:56 +0000 (12:07 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 14 Sep 2012 19:07:56 +0000 (12:07 -0700)
basis/heaps/heaps.factor

index 6eb4bf226a741945f83aebc2fda97e9f42a71b1d..f103c25659087c0a4a01fa3fe1e7ee8591e56a85 100644 (file)
@@ -22,7 +22,8 @@ TUPLE: heap { data vector } ;
 
 TUPLE: entry value key heap index ;
 
-: <entry> ( value key heap -- entry ) f entry boa ; inline
+: <entry> ( value key heap -- entry )
+    f entry boa ; inline
 
 PRIVATE>
 
@@ -38,7 +39,7 @@ M: heap heap-empty? ( heap -- ? )
     data>> empty? ; inline
 
 M: heap heap-size ( heap -- n )
-    data>> length ;
+    data>> length ; inline
 
 <PRIVATE