[Haskell-cafe] Global Arrays

Clark Gaebel cgaebel at csclub.uwaterloo.ca
Sat Mar 10 22:43:37 CET 2012


Wouldn't that still have to loop through the array (or in this case,
evaluate the monad) in order to use it the first time?

On Sat, Mar 10, 2012 at 2:22 AM, Alexandr Alexeev <afiskon at gmail.com> wrote:
>>> what's the canonical way of declaring a top-level array
> Did you try State/StateT monads?
>
> 10 марта 2012 г. 5:05 пользователь John Meacham <john at repetae.net> написал:
>>
>> On Fri, Mar 9, 2012 at 5:49 PM, Clark Gaebel
>> <cgaebel at csclub.uwaterloo.ca> wrote:
>> > What's the advantage of using D.A.Storable over D.Vector? And yes,
>> > good call with creating an array of HSDouble directly. I didn't think
>> > of that!
>>
>> Oh, looks like D.Vector has an unsafeFromForeignPtr too, I didn't see
>>  that. so D.Vector should work just fine. :)
>>
>>    John
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
>
> --
> С уважением, Александр
> Личный блог: http://eax.me/
> Мой форум: http://it-talk.org/
> Мой Twitter: http://twitter.com/afiskon
>



More information about the Haskell-Cafe mailing list