Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bsummer4
· 11y ago · 0 comments
You can't write this in Haskell:
print(arr[i])
You
can
write this, but you probably wouldn't.
print (arr `V.unsafeIndex` i)
Comments
[–]
dllthomas
11y ago
Unfortunately, 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.