Skip to content

Found a bug on exercise 45 #4

@ADPD5

Description

@ADPD5

I found a bug where the variable "ms" is used instead of "t". This causes the program to crash because "ms" is not defined anywhere.
I am forwarding the answer I think is right.

catMaybes :: [Maybe a] -> [a] catMaybes [] = [] catMaybes ((Just a):t) = a:catMaybes t catMaybes ((Nothing):t) = catMaybes t

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