Parametric polymorphism: Difference between revisions
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 139: | Line 139: | ||
| map_tree f (Node (x,l,r)) = Node (f x, map_tree f l, map_tree f r)</lang> |
| map_tree f (Node (x,l,r)) = Node (f x, map_tree f l, map_tree f r)</lang> |
||
{{Omit From|ALGOL 68}} <!-- it isn't immediately obvious that ALGOL 68 is object oriented --> |
{{Omit From|ALGOL 68}} <!-- it isn't immediately obvious that ALGOL 68 is object oriented --> |
||
⚫ | |||
⚫ | |||
{{omit from|C}} <!-- no type variables in stdc --> |
{{omit from|C}} <!-- no type variables in stdc --> |
||
⚫ | |||
⚫ |