Type definition

Cláudio Amaral coa@REDACTED
Mon Aug 3 20:32:20 CEST 2009


Can one define polymorphic type definitions?

For example:

poly_tree   I::integer  B::type
           empty
        | {branch, [B], poly_tree(I,B),poly_tree(I,B)}

where [B] is a list with I elements


Regards,
Cláudio



More information about the erlang-questions mailing list