ref: 14fca46c234b6da5f79283a871cfb7275efadaf5
parent: 0d5960f41c718947e1f838407eefb5ac12f54c51
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Oct 21 14:39:13 EDT 2016
Rename foobybar to byfoobar. it makes it sound better, at least to me.
--- a/lib/std/bitset.myr
+++ b/lib/std/bitset.myr
@@ -35,7 +35,7 @@
;;
impl iterable bsiter -> size
- generic bsbyvalue : (bs : bitset# -> bsiter)
+ generic bybsvalue : (bs : bitset# -> bsiter)
;;
const mkbs = {
@@ -156,7 +156,7 @@
ensurelen(b, sz)
}
-generic bsbyvalue = {bs
+generic bybsvalue = {bs
-> [.idx=0, .bs=bs]
}
--- a/lib/std/htab.myr
+++ b/lib/std/htab.myr
@@ -27,7 +27,7 @@
generic hthas : (ht : htab(@k, @v)#, k : @k -> bool)
generic htkeys : (ht : htab(@k, @v)# -> @k[:])
- generic htbykeyvals : (ht : htab(@k, @v)# -> htkviter(@k, @v))
+ generic byhtkeyvals : (ht : htab(@k, @v)# -> htkviter(@k, @v))
impl iterable htkviter(@k, @v) -> (@k, @v)
type htkviter(@k, @v) = struct
ht : std.htab(@k, @v)#
@@ -207,7 +207,7 @@
-> keys
}
-generic htbykeyvals = {ht
+generic byhtkeyvals = {ht
-> [.ht = ht, .idx = 0]
}