Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

elegant idiom anyone?

 [1/5] from: kpeters:otaksoft at: 12-Feb-2008 18:33


Who has an elegant way to convert b: [ "1" "2" "3" ] to b: [ 1 2 3 ] TIA, Kai

 [2/5] from: anton:wilddsl:au at: 13-Feb-2008 14:54


Hi Kai, Kai Peters wrote:
> Who has an elegant way to > convert
<<quoted lines omitted: 3>>
> TIA, > Kai
We've been over this before, I'm sure, but anyway:
>> to-block form b
== [1 2 3]
>> forall b [change b to-integer first b]
== []
>> b
== [1 2 3] Regards, Anton.

 [3/5] from: kpeters:otaksoft at: 12-Feb-2008 20:16


Thanks Anton ~ that's a bit more elegant than my building a new block etc. Just did a quick search of my 128 posts to the rebol list and couldn't find myself having asked this before. So I do hope you mistake me for someone else and that Alzheimer's is still a few years away for me.... Kai On Wed, 13 Feb 2008 14:54:29 +1100, Anton Rolls wrote:

 [4/5] from: carl:cybercraft at: 13-Feb-2008 6:16


On Wednesday, 13-February-2008 at 14:54:29 Anton Rolls wrote,
>Hi Kai, >Kai Peters wrote:
<<quoted lines omitted: 18>>
> >> b >== [1 2 3]
Is there any reason you need the forall? ...
>> b: to-block form [ "1" "2" "3" ]
== [1 2 3]
>> type? b/1
== integer! ? -- Carl Read.

 [5/5] from: Tom::Conlin::gmail::com at: 12-Feb-2008 22:00


Hi Kai I am pretty sure Anton's "we" was the maillist and not you in specific. Kai Peters wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted