Talk:Look-and-say sequence: Difference between revisions

Content added Content deleted
Line 36: Line 36:


: I also added the phrase   ''look and say''   (without the hyphens)   so that Rosetta Code task can be found when performing a search without the punctuation between the keywords.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 02:23, 17 January 2020 (UTC)
: I also added the phrase   ''look and say''   (without the hyphens)   so that Rosetta Code task can be found when performing a search without the punctuation between the keywords.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 02:23, 17 January 2020 (UTC)


== look-and-say versus run-length-encoding ==

I generalized the &nbsp; ''string of digits'' &nbsp; to a &nbsp; ''string of characters'' &nbsp; (for the REXX language example). &nbsp; There is nothing magical about decimal digits, &nbsp; any characters will do &nbsp; (but should be limited to displayable characters for obvious reasons, and a &nbsp; ''blank'' &nbsp; character becomes problematic). &nbsp; Also, the starting/initial number &nbsp; (or character string) &nbsp; can be specified. &nbsp; See the 2<sup>nd</sup> REXX output entry for a non-numeric example. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:29, 25 April 2020 (UTC)