Set
An object that represents a set of data.
Object
A Set
is a plain JavaScript object used to represent a
set of data usually returned by the server. For example,
a list of all completed todos might be represented by:
{complete: true}
This set might be passed to getList like:
Todo.getList({complete: true})
A Algebra is used to detail the behavior of these sets like:
var todoAlgebra = new set.Algebra(
set.props.boolean("complete")
);
Using an algebra, all sorts of special behaviors can be performed:
todoAlgebra.union({complete: true}, {complete: false}) //-> {}