antalsz 2017-01-30 21:46:08
Is there a "destructive `map`" operation on mutable `MVector`s? With type `inPlaceMap :: (PrimMonad m, Storable a) => (a -> a) -> MVector (PrimState m) a -> m ()`?
Lokathor 2017-01-30 21:47:41
looks like you'd have to build it
zipper 2017-01-30 21:57:33
ord "a"
zipper 2017-01-30 21:57:39
> ord "a"
lambdabot 2017-01-30 21:57:42
error:
lambdabot 2017-01-30 21:57:42
• Couldn't match expected type 'Char' with actual type '[Char]'
lambdabot 2017-01-30 21:57:42
• In the first argument of 'ord', namely '"a"'
ongy 2017-01-30 21:57:50
:t "a"
ongy 2017-01-30 21:57:52
:t 'a'
lambdabot 2017-01-30 21:57:52
[Char]
lambdabot 2017-01-30 21:57:55
Char
zipper 2017-01-30 21:58:00
> map ord "a"
lambdabot 2017-01-30 21:58:02
[97]
zipper 2017-01-30 21:58:11
ongy: yaaayz!!