aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/store.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-03 21:51:30 -0400
committerEduardo Julian2021-09-03 21:51:30 -0400
commit891b1cfc82322f8017f0a4f6b707d6fe52024545 (patch)
tree957429c0a2ad850b3570492deabe054fb2ace63e /stdlib/source/library/lux/data/store.lux
parente76add6e6f904677f5c09bb2a66dce283f1b848a (diff)
Unified tuple and record syntax.
Diffstat (limited to 'stdlib/source/library/lux/data/store.lux')
-rw-r--r--stdlib/source/library/lux/data/store.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/data/store.lux b/stdlib/source/library/lux/data/store.lux
index 24f7005fd..de09fe022 100644
--- a/stdlib/source/library/lux/data/store.lux
+++ b/stdlib/source/library/lux/data/store.lux
@@ -9,13 +9,13 @@
(type: .public (Store s a)
(Record
- {#cursor s
- #peek (-> s a)}))
+ [#cursor s
+ #peek (-> s a)]))
(def: (extend f wa)
(All (_ s a b) (-> (-> (Store s a) b) (Store s a) (Store s b)))
- {#cursor (value@ #cursor wa)
- #peek (function (_ s) (f (with@ #cursor s wa)))})
+ [#cursor (value@ #cursor wa)
+ #peek (function (_ s) (f (with@ #cursor s wa)))])
(implementation: .public functor
(All (_ s) (Functor (Store s)))