In reply to Ian Wakeling.

For efficiency considerations of the CHOOSE function, see the article
"Complex assignment statements: CHOOSE wisely" and the associated comments.