mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Remove Term catamorphism/paramorphism 😢
This commit is contained in:
parent
aaa1a9d25a
commit
b3f0d16fc8
@ -80,16 +80,6 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
// forall a. Term -> (Syntax a -> a) -> a
|
||||
Term.prototype.cata = function(transform) {
|
||||
return transform(this.unwrap.map(function(term) { term.cata(transform) }))
|
||||
}
|
||||
|
||||
// forall a. Term -> (Syntax (Term, a) -> a) -> a
|
||||
Term.prototype.para = function(transform) {
|
||||
return transform(this.unwrap.map(function(term) { [ term, term.para(transform) ] }))
|
||||
}
|
||||
|
||||
function toDOM(model, stateName, source) {
|
||||
var element;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user