上周我正在试验榆树(所以考虑我是初学者)并且想知道以下情况,
我已经定义了多个类型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)
是否可以通过使用排序来组合和排序两个列表?(排序)我想这样做来创建一个列表来呈现所有项目.
谢谢!