Talk:Odd word problem

From Rosetta Code
Revision as of 20:06, 3 November 2011 by rosettacode>Ledrug (Explanations)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Explanations

Obviously, this task is not about text processing. Rather, it's about conditional code execution order. The even words are straightforward, while reversing odd words are easy with, say, recursion, with the catch that the word end marker (punctuation) needs to be processed after the recursion has returned. If peeking ahead is allowed, then this difficulty is removed and the whole thing becomes quite moot. --Ledrug 20:06, 3 November 2011 (UTC)