Description
Haskell array programming.
Description
This package provides Haskell array programming, interface and environment.
Module names clash with each other and with the Prelude.
Usage
>>>
import Harpie.Fixed qualified as F
>>>
import Harpie.Shape qualified as S
>>>
import Harpie.Array qualified as A
>>>
a = F.range @[2,3,4]
>>>
F.shape a
[2,3,4]
>>>
pretty a
[[[0,1,2,3],
[4,5,6,7],
[8,9,10,11]],
[[12,13,14,15],
[16,17,18,19],
[20,21,22,23]]]
>>>
a = A.range [2,3,4]
>>>
F.shape a
[2,3,4]
>>>
pretty a
[[[0,1,2,3],
[4,5,6,7],
[8,9,10,11]],
[[12,13,14,15],
[16,17,18,19],
[20,21,22,23]]]