Skip to content

Instantly share code, notes, and snippets.

@DrBoolean
Last active May 30, 2016 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrBoolean/5aa5baba924d77efb5c7114f69cbe30e to your computer and use it in GitHub Desktop.
Save DrBoolean/5aa5baba924d77efb5c7114f69cbe30e to your computer and use it in GitHub Desktop.
task_sketch8.js
const createRecord = tablename => attrs =>
Id.of(Object.assign({id: Math.random(2)}, attrs))
const makeFixtures = defs =>
Map(defs)
.traverse(Id.of, (instances, tablename) =>
Map(instances).traverse(Id.of, createRecord(tablename)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment