summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-10-21 18:39:13 -0700
committerOri Bernstein <ori@eigenstate.org>2016-10-21 18:39:13 -0700
commit14fca46c234b6da5f79283a871cfb7275efadaf5 (patch)
tree00925368176e6d59570d8afd28466716233aa1d4
parent0d5960f41c718947e1f838407eefb5ac12f54c51 (diff)
downloadmc-14fca46c234b6da5f79283a871cfb7275efadaf5.tar.gz
Rename foobybar to byfoobar.
it makes it sound better, at least to me.
-rw-r--r--lib/std/bitset.myr4
-rw-r--r--lib/std/htab.myr4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/bitset.myr b/lib/std/bitset.myr
index 4af3300..d914c67 100644
--- a/lib/std/bitset.myr
+++ b/lib/std/bitset.myr
@@ -35,7 +35,7 @@ pkg std =
;;
impl iterable bsiter -> size
- generic bsbyvalue : (bs : bitset# -> bsiter)
+ generic bybsvalue : (bs : bitset# -> bsiter)
;;
const mkbs = {
@@ -156,7 +156,7 @@ const eqsz = {a, b
ensurelen(b, sz)
}
-generic bsbyvalue = {bs
+generic bybsvalue = {bs
-> [.idx=0, .bs=bs]
}
diff --git a/lib/std/htab.myr b/lib/std/htab.myr
index 6689dd9..ccccfe9 100644
--- a/lib/std/htab.myr
+++ b/lib/std/htab.myr
@@ -27,7 +27,7 @@ pkg std =
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 @@ generic htkeys = {ht
-> keys
}
-generic htbykeyvals = {ht
+generic byhtkeyvals = {ht
-> [.ht = ht, .idx = 0]
}