Sitelet https://github.com/purescript/purescript-catenable-lists/issues/51
Skip to content

CatQueue traverse implementation #51

Description

@nadameu

The traverse implementation of CatQueue iterates through every element twice.

Is this intended?

traverse f =
map (foldl snoc empty)
<<< foldl (\acc -> lift2 snoc acc <<< f) (pure empty)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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