Skip to content

No fold/reduce functions available in codeworld? #1480

@maspotts

Description

@maspotts

Shared Program: https://code.world/#Pss8gW_0yQqOj_L9wLm0QDQ

Description

I'm trying to show my kid how to replace this pattern:

picture1 & picture2 & picture2

with (the codeworld equivalent of) this pattern:

foldl1 (&) listOfPictures

but I can't find foldl (or foldl1, foldl', foldr, etc.) in codeworld:

Variable not in scope:
      foldl :: ((Number, Number) -> Number, Number, [Number]) -> t

and I also can't import Data.List:

Could not find module Data.List

Is this possible, or am I trying to do something that's forbidden within codeworld?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions