Skip to content

Instantly share code, notes, and snippets.

@SoshiHomma
SoshiHomma / type_alias_test.elm
Last active August 26, 2020 01:55
Elm to see how type alias works
import Html exposing (..)
type alias UserInfo =
{ name : String, age : Int }
type alias Coach =
{ name : String, age : Int, sports : String }
getUserAge : UserInfo -> Int
getUserAge userInfo =