Apply a callback to an array: Difference between revisions

Content added Content deleted
Line 1,168: Line 1,168:
array(int) a = ({ 1,2,3,4,5 });
array(int) a = ({ 1,2,3,4,5 });
array(int) b = cube(a[*]); // automap operator
array(int) b = cube(a[*]); // automap operator
array(int) c = map(a, cube); // conventional map function
array(int) c = map(a, cube); // conventional map function</lang>
</lang>


=={{header|PL/SQL}}==
=={{header|PL/SQL}}==