Skip to content

perty/Matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix

Two-dimensional matrix backed by Array from the Elm core, the fast immutable array implementation.

The main motivation for this is the indexedMap function that is useful in games where you want to act depending on position as well as content. E.g., the game of life where the cell is depending on its neighbours.

Speaking of neighbours, that is also a function in this package.

Version 2.0.0

API design follows the Elm core Array module.

Naming is now rows and columns, as it is more fit to the purpose of the library.

New function foldl for folding left over each row and then merge.

About

Two dimensional matrix backed by Array from the Elm core, the fast immutable array implementation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages