(check-variable) ( actual-count declared-count variable vars -- diff ? )


Vocabulary
stack-checker.row-polymorphism

Inputs
actual-countan object
declared-countan object
variablean object
varsan object


Outputs
diffan object
?an object


Definition


: (check-variable)
( actual-count declared-count variable vars -- diff ? )
[ - ] 2dip dupd [ (diff-variable) t ] 2curry [ dup 0 <= ] if
;