Skip to content

How to use actual arrays, 1D or 2D, with O(1) access and mutation complexity #14

Open
@Martinsos

Description

@Martinsos

I still don't know how to work with arrays in Haskell that are fast like in other languages!
I would like to write a tutorial that explains this but for the beginners, and is as simple as possible, not assuming you know what ST monad is and similar, but instead shows with very good examples how to do it -> ideally I would just follow those examples and get it done.

I asked a bit around and was told that this probably has to do with ST monad, so maybe I should look in that direction.

I also found out there are Vector and Array libraries which can serve for this although the are somewhat different.

Some potential resources:

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