前提としているElmのバージョンは0.18.0
。
- 実行環境
- リテラル
- 関数
- 型
- 構文
- モジュール
x.foo(); /*is the same as*/ x foo | |
x.foo(y); /*is the same as*/ x foo y | |
x.::(y); /*is the same as*/ y :: x |
trait InstantaneousTime { | |
val repr: Int | |
override def equals(other: Any) : Boolean = other match { | |
case that: InstantaneousTime => | |
if(this eq that) { | |
true | |
} else { | |
(that.## == this.##) && | |
(repr == that.repr) | |
} |
$ tree . | |
├── main | |
│ ├── java | |
│ └── scala | |
└── test | |
├── java | |
└── scala |
module Main exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events as Events exposing (on) | |
import Json.Decode as Json | |
type alias Model = | |
{ selectedText : Maybe String |