From 11960879912b6c4b297083e083e099bd2902837c Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 13 May 2010 14:30:19 -0700 Subject: [PATCH] math: declare quotation stack effects on each-integer, times, find-integer, all-integers? --- core/math/math.factor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/math/math.factor b/core/math/math.factor index eb3966397e..bc7658feba 100644 --- a/core/math/math.factor +++ b/core/math/math.factor @@ -159,16 +159,16 @@ PRIVATE> [ f ] if ] [ 3drop t ] if-iterate? ; inline recursive -: each-integer ( n quot -- ) +: each-integer ( ... n quot: ( ... i -- ... ) -- ... ) iterate-prep (each-integer) ; inline -: times ( n quot -- ) +: times ( ... n quot: ( ... -- ... ) -- ... ) [ drop ] prepose each-integer ; inline -: find-integer ( n quot -- i ) +: find-integer ( ... n quot: ( ... i -- ... ? ) -- ... i ) iterate-prep (find-integer) ; inline -: all-integers? ( n quot -- ? ) +: all-integers? ( ... n quot: ( ... i -- ... ? ) -- ... ? ) iterate-prep (all-integers?) ; inline : find-last-integer ( ... n quot: ( ... i -- ... ? ) -- ... i )