Parametric polymorphism: Difference between revisions

J draft
(added Inform 7 solution)
(J draft)
Line 271:
text valued table column
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}}==
6,962

edits