Last active
May 30, 2016 16:03
-
-
Save DrBoolean/5aa5baba924d77efb5c7114f69cbe30e to your computer and use it in GitHub Desktop.
task_sketch8.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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