4 ms·
You can't write this in Haskell: print(arr[i]) You can write this, but you probably wouldn't. print (arr `V.unsafeIndex` i)
by bsummer4 11y ago
You can't write this in Haskell:
print(arr[i])
You can write this, but you probably wouldn't.
print (arr `V.unsafeIndex` i)
- dllthomas 11y agoUnfortunately, unsafeIndex is often spelled "!". There is a push (which I support!) away from partial functions, but there are still plenty of partial functions provided by standard libraries under names that sound reasonable.