OCLOperators Set
No edit summary
No edit summary
Line 1: Line 1:
You can use Set with { } to create a set that you may use to loop over, like this: Set{1,2,3,4,5,6,7,8,9,10,11,12}->collect(i| DoSomthingWithAnInt(i))
You can use Set with { } to create a set that you may use to loop over, like this:  
Set{1,2,3,4,5,6,7,8,9,10,11,12}->collect(i| DoSomthingWithAnInt(i))
 
Other names for set: array of numbers, static array, initialize array, list of numbers
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 14:10, 20 October 2020

This page was created by Hans.karlsen@mdriven.net on 2017-11-08. Last edited by Stephanie@mdriven.net on 2025-02-04.

You can use Set with { } to create a set that you may use to loop over, like this:

Set{1,2,3,4,5,6,7,8,9,10,11,12}->collect(i| DoSomthingWithAnInt(i))

Other names for set: array of numbers, static array, initialize array, list of numbers

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments