I’m using the elm Playground package for drawing an SVG.
indexedMap to a list of values I am trying to render shapes and alter the shapes position with the Playground function
moveDown : Number -> Shape -> Shape.
The crux of the issue is that this function accepts the Number type and that is somehow incompatible with the Int type?!
What can I do?
module Main exposing (main) import Playground exposing (..) main = picture view type Node = Node Int (List Int) view = let graph = [ Node 0 [ 1, 2 ] , Node 1  , Node 2  ] in graph |> List.map Debug.toString |> List.indexedMap printDown printDown : Int -> String -> Shape printDown i x = words black x |> moveDown i -- moveDown expects Number, got Int and fails?!