From 233e7f0d4d7d7b4128d3f2dcb510c1379f51bb4b Mon Sep 17 00:00:00 2001 From: Erik Simmler Date: Sat, 18 Jun 2016 14:39:47 -0400 Subject: [PATCH] Add a type signature for the wordCount function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the test converts wordCount’s output with Dict.toList, the required type may not be immediately apparent to an early learner. --- exercises/word-count/WordCount.elm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exercises/word-count/WordCount.elm b/exercises/word-count/WordCount.elm index b8798f9..54ba2e5 100644 --- a/exercises/word-count/WordCount.elm +++ b/exercises/word-count/WordCount.elm @@ -1 +1,4 @@ module WordCount exposing (..) + + +wordCount : String -> Dict String Int