original_query: What is continuation-passing style (CPS) in functional programming?
query: What is continuation-passing style (CPS) in functional programming?
answer: In functional programming, continuation-passing style (CPS) is a programming style where control is explicitly passed as a continuation, a function of one argument.  When a CPS function computes its result, it calls this continuation with the result. This contrasts with direct style, making procedure returns, intermediate values, argument evaluation order, and tail calls explicit.