7

型の可能な値からリストを生成できますか? 例えば

data Shape = Circle | Rectangle | Triangle | Pentagon

[Circle,Rectangle,Triangle,Pentagon]

4

1 に答える 1