friedbrice / elm-teaching-tools / ElmTeachingTools.Labs.Introduction

Some exercises to get you familiar with programming in Elm.

runIntroduction : Exercises -> Platform.Program () Model Message

To complete this lab, import this library in your own file, create an appropriate Exercises value, and use your Exercises value with runIntroduction.

module Main exposing (main)

import ElmTeachingTools.Labs.Introduction exposing (..)

myExercises : Exercises
myExercises =
    { -- your code here
    }

main =
    runIntroduction myExercises


type alias Exercises =
{ ex0_sayHello : String -> String
, ex1_countVowels : String -> Basics.Int
, ex2_toCamelCase : String -> String
, ex3_diffList : List Basics.Int -> Maybe (List Basics.Int)
, ex4_partialSums : List Basics.Int -> List Basics.Int
, ex5_simpleCalc : String -> String 
}

This lab consists of six exercises to help you get started learning the basics of Elm and how to use it to write interactive web programs.