Re: Is subscripting a slice useful
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Oct 08, 2004
- 569 views
On Fri, 8 Oct 2004 16:01:59 -0700, codepilot Gmail Account <codepilot at gmail.com> wrote: >Another good thing would be, subscripting inline constants. >? {"asdf"}[1] >prints 'a' Agreed, though you have obviously over-simplified it by using a literal 1 and adding {}. "asdf"[type] makes sense, if you want to convert 1..4 into 'a'..'f' inline, without being forced to pre-declare a constant. My little pet project, posetf, actually handles this quite naturally, and to be honest I can't quite see why Rob disallows it, though I guess we'll all know more when 2.5 Eu in Eu arrives. Regards, Pete My homepage: http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html