aboutsummaryrefslogtreecommitdiffstats
path: root/src/Array/PArray.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Array/PArray.v')
-rw-r--r--src/Array/PArray.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Array/PArray.v b/src/Array/PArray.v
index 3c98041..35d68b4 100644
--- a/src/Array/PArray.v
+++ b/src/Array/PArray.v
@@ -101,9 +101,11 @@ Definition length {A:Type} (t:array A) : int :=
Definition copy {A:Type} (t:array A) : array A := t.
+Module Export PArrayNotations.
Delimit Scope array_scope with array.
Notation "t '.[' i ']'" := (get t i) (at level 50) : array_scope.
Notation "t '.[' i '<-' a ']'" := (set t i a) (at level 50) : array_scope.
+End PArrayNotations.
Local Open Scope array_scope.