1

How I can insert OrderedCollection into the text editor? I tried to do something like that:

texeditor value:list printString

where list is my OrderedCollection. The result was

OrderedCollection('4''2''1')

in the text editor, but I would like to have as a result, only the values stored in the collection, so that the text editor will show:

'4''2''1'

without the "OrderedCollection".

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
ContentPenalty
  • 447
  • 1
  • 5
  • 14

1 Answers1

3

Try soemthing like this:

textEditor value: (list inject: String new into: [:string :each |
   string, each printString])
David Buck
  • 2,847
  • 15
  • 16