Express the linear partition problem in ClojureScript