From 6671193879d4fbb1d4c53685187ff0c7d1913cbe Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 14 Dec 2008 00:48:06 -0600 Subject: [PATCH] remove >r r> --- extra/bank/bank.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/bank/bank.factor b/extra/bank/bank.factor index a409c97815..0f8b5581df 100644 --- a/extra/bank/bank.factor +++ b/extra/bank/bank.factor @@ -20,7 +20,7 @@ C: transaction : balance>> ( account -- balance ) transactions>> total ; : open-account ( name interest-rate interest-payment-day opening-date opening-balance -- account ) - >r [ ] keep r> "Account Opened" >>transaction ; + [ [ ] keep ] dip "Account Opened" >>transaction ; : daily-rate ( yearly-rate day -- daily-rate ) days-in-year / ; @@ -56,7 +56,7 @@ C: transaction : each-day ( quot start end -- ) 2dup before? [ - >r dup >r over >r swap call r> r> 1 days time+ r> each-day + [ dup [ over [ swap call ] dip ] dip 1 days time+ ] dip each-day ] [ 3drop ] if ;