Hello, I have a collection that looks like this :
sampleData1 "comment stating purpose of message" ^ #( -8 +7) I want to add those numbers up but the code chokes at the + so I did this :FrequencyFinderData new class sampleData1 inject: 0 into: [:sum :each | (each ~= $+) ifTrue: [sum + each asInteger] ]
so when the each is not a + it must count it but still the code chokes at the +
Where do I think wrong ? Roelof