Rename *Maybe functions to *NB

This commit is contained in:
Kiana Sheibani 2022-06-15 22:47:43 -04:00
parent b0d48eaf00
commit 015b7f8cb1
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 19 additions and 19 deletions

View file

@ -66,12 +66,12 @@ export
(!!) = flip index
export
indexMaybe : Nat -> Vector n a -> Maybe a
indexMaybe n = Array.indexMaybe [n]
indexNB : Nat -> Vector n a -> Maybe a
indexNB n = Array.indexNB [n]
export
(!?) : Vector n a -> Nat -> Maybe a
(!?) = flip indexMaybe
(!?) = flip indexNB
-- Named projections