July 7, 2011
10:02 a.m.
Hi list, I'd love to have something like: #(#a #b) combinationsWith: #('one' 'two' 'three') collect: [:i :j | i , ' matches ' , j asString] That returns the collection: #('a matches one' 'a matches two' 'a matches three' 'b matches one' 'b matches two' 'b matches three') In other words, is there some kind of vectorial-product-like method for collections in Smalltalk? Thanks! Cheers, -- Bernat Romagosa.