Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Chapter 11.4 The State Monad - type mismatch in example #132

@crcdng

Description

@crcdng
> :paste
… execState (do
…   sumArray [1, 2, 3]
…   sumArray [4, 5]
…   sumArray [6]) 0
… ^D
21

sumArray takes Array Number, the array values here are of type Int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions