DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Arrays / Lists — Example 49

Quick explanation + ready code for: Arrays / Lists.

Objective-C Arrays / Lists Back to examples
Back to language
Syntax: Arrays / Lists in Objective-C. ID: #49

Code

const items = [4, 5, 6];
console.log(items.map(x=>x*2));

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.