AxiNat <[email protected]> writes:

> Hi Friederich, here's two simple optimizations:
>
> #(#nul #soh #stx #etx #eot #enq #ack #bel #bs #tab #lf)
>    withIndexDo:  [:each :index |
>       self class compile: each asString , '  ^ asciiField at: ', index
> asString.].
>
> Array withAll: #(1 2 3) is equivalent to #(1 2 3), and if you're not going to
> use the array again, you don't even need to assign it to a variable :)
Well I do not want the compile part with String

>
> Instead of manually using an index, it is more elegant to use
> withIndexDo:
Ok that is really  nice to know

Regards
Friedrich

-- 
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim 
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus

Reply via email to