小编Koe*_*tyn的帖子

榆树 - 结合和分类多种类型

上周我正在试验榆树(所以考虑我是初学者)并且想知道以下情况,

我已经定义了多个类型Foo和Bar,例如都有一个日期字段.

type alias Foo = 
{
    date : String,
    check : Bool
}
Run Code Online (Sandbox Code Playgroud)

type alias Bar = 
{
    date : String,
    check : Bool,
    text : String
}
Run Code Online (Sandbox Code Playgroud)

是否可以通过使用排序来组合和排序两个列表?(排序)我想这样做来创建一个列表来呈现所有项目.

谢谢!

combinations types elm

4
推荐指数
1
解决办法
631
查看次数

标签 统计

combinations ×1

elm ×1

types ×1