Skip to content

Commit

Permalink
added speedUpXORs method to OMeta object
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwarth committed Jan 26, 2010
1 parent cef667d commit 86ea29c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ometa-base.js
Expand Up @@ -237,6 +237,9 @@ OMeta = {
else if (numMatches == 1) return ans
else throw 'more than one choice matched in "exclusive-OR"'
},
speedUpXORs: function() {
this._xor = this._or
},
_many: function(x) {
var ans = arguments[1] != undefined ? [arguments[1]] : []
while (true) {
Expand Down

0 comments on commit 86ea29c

Please sign in to comment.