currying.js: call function immediately
cycle: prevent an infinite loop