mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
Revert examples
This commit is contained in:
parent
91ceebc065
commit
629d4236e3
@ -8,17 +8,4 @@ app "rocLovesPlatforms"
|
||||
imports []
|
||||
provides [main] to pf
|
||||
|
||||
Html state : [
|
||||
Element (List (Html state)),
|
||||
]
|
||||
|
||||
translateStatic : Html _ -> Html _
|
||||
translateStatic = \node ->
|
||||
when node is
|
||||
Element children ->
|
||||
newChildren = List.map children translateStatic
|
||||
|
||||
Element newChildren
|
||||
|
||||
main = when translateStatic (Element []) is
|
||||
_ -> ""
|
||||
main = "Which platform am I running on now?\n"
|
||||
|
Loading…
Reference in New Issue
Block a user