summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-26 22:00:20 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-26 22:00:20 -0700
commit0087d35b4f6393aa46c5ac757f77c5087f2add19 (patch)
tree292b7d1af2cc44f9bbbe731403e470f2c88efadd
parentca5d97ab9816e93ed64e2ab6fe467488228a0409 (diff)
downloadmc-0087d35b4f6393aa46c5ac757f77c5087f2add19.tar.gz
Bitset iterator doesn't need to be generic.
A const works perfectly fine.
-rw-r--r--lib/std/bitset.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/bitset.myr b/lib/std/bitset.myr
index 1d846da..b173d87 100644
--- a/lib/std/bitset.myr
+++ b/lib/std/bitset.myr
@@ -38,7 +38,7 @@ pkg std =
;;
impl iterable bsiter -> size
- generic bybsvalue : (bs : bitset# -> bsiter)
+ const bybsvalue : (bs : bitset# -> bsiter)
;;
const mkbs = {
@@ -179,7 +179,7 @@ const eqsz = {a, b
ensurelen(b, sz)
}
-generic bybsvalue = {bs
+const bybsvalue = {bs
-> [.idx=0, .bs=bs]
}