shithub: mc

Download patch

ref: 0087d35b4f6393aa46c5ac757f77c5087f2add19
parent: ca5d97ab9816e93ed64e2ab6fe467488228a0409
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Jul 26 18:00:20 EDT 2017

Bitset iterator doesn't need to be generic.

	A const works perfectly fine.

--- a/lib/std/bitset.myr
+++ b/lib/std/bitset.myr
@@ -38,7 +38,7 @@
 	;;
 
 	impl iterable bsiter -> size
-	generic bybsvalue	: (bs : bitset# -> bsiter)
+	const  bybsvalue	: (bs : bitset# -> bsiter)
 ;;
 
 const mkbs = {
@@ -179,7 +179,7 @@
 	ensurelen(b, sz)
 }
 
-generic bybsvalue = {bs
+const bybsvalue = {bs
 	-> [.idx=0, .bs=bs]
 }