This commit is contained in:
ven 2016-07-02 12:43:15 +02:00 committed by GitHub
parent df4dbee36f
commit a7eed36c1d

View File

@ -156,6 +156,7 @@ List.map (\a -> a * 2) [1..4] -- [2, 4, 6, 8]
-- You can pattern match in function definitions when there's only one case.
-- This function takes one tuple rather than two arguments.
-- This is the way you'll usually unpack/extract values from tuples.
area (width, height) =
width * height