|
From: Iain G. <iai...@ed...> - 2015-07-29 07:44:51
|
why do I get the following error?
Stack effect declaration is wrong
inferred ( x x x -- x x )
declared ( amount coins -- ways )
from this lexical variable
:: cc ( amount coins -- ways )
0 amount = [ 1 ]
[ 0 < amount 0 coins = or [ 0 ]
[ amount coins 1 - cc
amount coins denominations at* drop - coins cc + ]
if ]
if ;
|