Solve task 03
This commit is contained in:
parent
37ba1cb36d
commit
7676005844
4
.vscode/tasks.json
vendored
Normal file
4
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
"version": "2.0.0"
|
||||||
|
}
|
|
@ -57,7 +57,7 @@ Greet Obi-Wan and Han, each with a phrase like e.g.
|
||||||
"Hello Obi-Wan". Use 'map' and 'first'.
|
"Hello Obi-Wan". Use 'map' and 'first'.
|
||||||
-}
|
-}
|
||||||
greetings :: [String]
|
greetings :: [String]
|
||||||
greetings = error "fixme"
|
greetings = map (\x -> "Hello " ++ firstName x) [han, obiWan]
|
||||||
|
|
||||||
{- "Setters"
|
{- "Setters"
|
||||||
Values of a record can be changed with the syntax below.
|
Values of a record can be changed with the syntax below.
|
||||||
|
|
Loading…
Reference in a new issue