Prettify some code.

Šī revīzija ir iekļauta:
2018-05-26 13:15:27 -07:00
vecāks 237630054b
revīzija b68222dab7
3 mainīti faili ar 16 papildinājumiem un 6 dzēšanām

Parādīt failu

@@ -4,6 +4,7 @@ import Go.Types exposing (..)
import Html exposing (Html, div, text, p)
import Html.Attributes exposing (class, classList)
import Html.Events exposing (onClick)
import List exposing (map)
renderIndex : (Index, Maybe Color) -> Html Msg
renderIndex (index, color) =
@@ -21,6 +22,6 @@ renderIndex (index, color) =
renderBoard : Int -> Board -> Html Msg
renderBoard size board =
let
cells = List.map (\i -> (lookup i board) |> (pair i)) <| allIndices size
cells = map (\i -> (i, lookup i board)) <| allIndices size
in
div [ class "board" ] <| List.map renderIndex cells
div [ class "board" ] <| map renderIndex cells