Constrained genericity: Difference between revisions

m
Nim: the "generic" keyword is now deprecated in favor of the new "concept"
m (Nim: the "generic" keyword is now deprecated in favor of the new "concept")
Line 887:
=={{header|Nim}}==
<lang nim>type
Eatable = genericconcept e
eat(e)
 
Anonymous user