Hello everyone,

While using #flatCollect: on a collection, I realized that, for example,
these two code snippets do not behave the same way:

#(1 (1)) flatCollect: #yourself. "Raise an error because the array does not contain only collections"

(#(1 (1)) collect: #yourself) flattened "Returns #(1 1)

Shouldn't these two code snippets behave the same way?

Thanks in advance for your answers.

Regards,

Julien


Reply via email to