How do I make an heterogeneous list in Haskell? (originally in Java)

前端 未结 4 1657
南旧
南旧 2021-02-10 13:13

How to convert following Java implementation into Haskell?

The major purpose here is having a list that contains various elements which are sub-type of a particular in

4条回答
  •  既然无缘
    2021-02-10 14:04

    To migrate from OOP to Haskell, read this:

    http://www.haskell.org/haskellwiki/OOP_vs_type_classes

提交回复
热议问题