Talk:Longest string challenge: Difference between revisions

(→‎Request for Python explanation: because Dgamey doesn't like op functions)
Line 71:
::: I'm not sure about ''explicitly'' storing, but the spirit of the task *is* to avoid ''explicit'' math and comparisons. In particular, avoiding explicit less/greater comparisons. --[[User:Dgamey|Dgamey]] 05:19, 14 August 2011 (UTC)
:: Icon has no boolean type. Expressions succeed (returning a value) or fails and do not. It's a form of short circuit evaluation. For example, it is not possible in Icon to run out of bounds of a list, string, etc. as doing so fails. 'move(1)' returns the next character in the string being scanned or fails if there is none. --[[User:Dgamey|Dgamey]] 05:19, 14 August 2011 (UTC)
::: Similarly, s[n] succeeds returning the n-th element of s (string or list) or fails --[[User:Dgamey|Dgamey]] 06:55, 14 August 2011 (UTC)
 
==Request for Python explanation==
Anonymous user