I cannot understand haskell arrays.
For example I want to create and store an array in variable bsd but what goes in .... if I want an array of size eg 10 and of type Bool.
bsd :: Array Int Bool --is this correct?
bsd = .... --what comes here?
Please help me understand...
and what if I want to change a value in bsd at e.g. index 5 what is the syntax
and how can i access a index in bsd ??
please help
Arrayis a pure value. You can't change it. There are operations for creating new arrays representing modifications of old ones, but those are too slow for any non-small arrays. If your arrays really have just ten or so elements, then that's likely fine, but otherwise you might want to use mutable arrays or pure sequences.