给定
type Bla = A Int | B Int
valA1 = A 1
valA2 = A 2
Run Code Online (Sandbox Code Playgroud)
有没有一种方法可以检查是否valA1已使用的构造函数构造valA2?
如果我的模型看起来像:
type alias Application = { id : Int , term : Int , amount : Int }
type alias Model = { application : Application }
Run Code Online (Sandbox Code Playgroud)
我正在尝试更新该term值,我onInput UpdateTerm在更新案例语句中的输入上有如何更新此值?
到目前为止,我UpdateTerm term ->;不确定如何只更新term应用程序内部的值?