Apply a callback to an array: Difference between revisions

Content added Content deleted
m (→‎{{header|Ada}}: added code highlighting)
Line 2: Line 2:
=={{header|Ada}}==
=={{header|Ada}}==
{{works with|GNAT|GPL 2005}}
{{works with|GNAT|GPL 2005}}
with Ada.Text_Io;
<ada>with Ada.Text_Io;
with Ada.Integer_text_IO;
with Ada.Integer_text_IO;
Line 38: Line 38:
begin
begin
Map(Sample, Display'access);
Map(Sample, Display'access);
end Call_Back_Example;
end Call_Back_Example;</ada>


=={{header|ALGOL 68}}==
=={{header|ALGOL 68}}==