learning scala type alise

How to use type alias to name a Tuple2 pair into a domain type called CartItem

type CartItem[Donut, Int] = Tuple2[Donut, Int]

 

posted @ 2019-07-12 11:13  嵌入式实操  阅读(144)  评论(0编辑  收藏  举报