diff --git a/extra/rosetta-code/y-combinator/y-combinator.factor b/extra/rosetta-code/y-combinator/y-combinator.factor index c32cf7209f..96dc2d3d9a 100644 --- a/extra/rosetta-code/y-combinator/y-combinator.factor +++ b/extra/rosetta-code/y-combinator/y-combinator.factor @@ -24,8 +24,10 @@ IN: rosetta-code.y-combinator : Y ( quot -- quot ) '[ [ dup call call ] curry @ ] dup call ; inline +! factorial sequence : almost-fac ( quot -- quot ) - '[ dup zero? [ drop 1 ] [ dup 1 - _ call * ] if ] ; + '[ dup zero? [ drop 1 ] [ dup 1 - @ * ] if ] ; +! fibonacci sequence : almost-fib ( quot -- quot ) - '[ dup 2 >= [ 1 2 [ - _ call ] bi-curry@ bi + ] when ] ; + '[ dup 2 >= [ 1 2 [ - @ ] bi-curry@ bi + ] when ] ;