Hacker News new | ask | show | jobs
by bsummer4 4067 days 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)
1 comments

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.