4
votes
Vote UpVote

Parallel Map

The Delphi Geek – At my latest parallel programming presentation a participant suggested that I should extend the OmniThreadLibrary with a parallel mapping abstraction. Dear sir, here is a gift for you.var numbers: TArray<integer>; odds : TArray<string>;begin //initialize the `numbers` array (not shown) odds := Parallel.Map<integer,string>(numbers, function (const source: integer; var dest: string): boolean begin Result := Odd(source); if Result then dest := IntTostr(source); end); //do something with the `odds` array (not shown)end;Read more ยป--- Published ...
Favorite? Off-Topic? gabr @ 2015-01-30 22:08

Statistics

Visits: 875
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Horbs
vintagedave
Wouter
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)