Add new indexing functions
This commit is contained in:
parent
9ece7e6963
commit
3246e0ed94
3 changed files with 81 additions and 37 deletions
|
|
@ -65,6 +65,6 @@ power (S n@(S _)) x = x *. power n x
|
|||
||| number power.
|
||||
|||
|
||||
||| This is the operator form of `power`.
|
||||
public export
|
||||
public export %inline
|
||||
(^) : MultGroup a => a -> Nat -> a
|
||||
(^) = flip power
|
||||
a ^ n = power n a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue