Currently SeqMap (and FoldLeft etc) are terms with "template" arguments (Term => Term functions). Instead of these templates we should use (variable, term) pairs where the variable identifies the slot in the body term. The benefit of this is that we can pattern match on such terms (this isn't possible for scala functions).
When users create the SeqMap via the .map method we should still use templates though. The .map call will then create the corresponding (variable,term) pair to populate the SeqMap term.
Currently SeqMap (and FoldLeft etc) are terms with "template" arguments (Term => Term functions). Instead of these templates we should use (variable, term) pairs where the variable identifies the slot in the body term. The benefit of this is that we can pattern match on such terms (this isn't possible for scala functions).
When users create the SeqMap via the .map method we should still use templates though. The .map call will then create the corresponding (variable,term) pair to populate the SeqMap term.