Skip to content

Instantly share code, notes, and snippets.

@kindohm
Created October 29, 2019 02:47
Show Gist options
  • Select an option

  • Save kindohm/d4474ae3eff8aeff3be8785310250cf1 to your computer and use it in GitHub Desktop.

Select an option

Save kindohm/d4474ae3eff8aeff3be8785310250cf1 to your computer and use it in GitHub Desktop.
let _plyWith numPat f p = arpeggiate $ compound numPat
where compound n | n <= 1 = p
| otherwise = overlay p (f $ compound $ n-1)
let plyWith np f p = innerJoin $ (\n -> _plyWith n f p) <$> np
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment