Rename *Maybe functions to *NB
This commit is contained in:
parent
b0d48eaf00
commit
015b7f8cb1
4 changed files with 19 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue