Test for element in array

Andrei Khropov andkhropov at nospam_mtu-net.ru
Thu Jul 13 16:16:38 PDT 2006


BCS wrote:

>  if({foreach(i;a) if(i==j) return true; return false;}())

Yeah, this new delegate syntax is cool !

-- 




More information about the Digitalmars-d-learn mailing list