Parametric polymorphism: Difference between revisions
Content added Content deleted
(added Inform 7 solution) |
(J draft) |
||
Line 271: | Line 271: | ||
text valued table column |
text valued table column |
||
phrase (text, text) -> number</lang> |
phrase (text, text) -> number</lang> |
||
=={{header|J}}== |
|||
In J, all functions are generic over other types. |
|||
Alternatively, J is statically typed in the sense that it supports only one data type (the array), though of course inspecting a value can reveal additional details (such as: is it an array of numbers?) |
|||
=={{header|Java}}== |
=={{header|Java}}== |