ハンズオンを実施するために必要な環境は以下になります。
ハンズオン当日までにインストールしておいてください。
なお、Node.jsをインストールしていることを前提としています。
- Elm 0.19
- elm-format
- Visual Studio Code
| 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 |
| $ tree . | |
| ├── main | |
| │ ├── java | |
| │ └── scala | |
| └── test | |
| ├── java | |
| └── scala |
| 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) | |
| } |
| 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 |