Higher-order functions: Difference between revisions
Content added Content deleted
(→[[Pascal]]: bug) |
|||
Line 353: | Line 353: | ||
function second(x: real): real; |
function second(x: real): real; |
||
begin |
begin |
||
second = x/2.0; |
second := x/2.0; |
||
end; |
end; |
||
Line 360: | Line 360: | ||
end. |
end. |
||
Turbo Pascal (will not work with Standard Pascal): |
[[Turbo Pascal]] (will not work with Standard Pascal): |
||
program example; |
program example; |