-
-
Save Raynos/98a0b0c6f344961f6b6e to your computer and use it in GitHub Desktop.
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
function createVideos() { | |
// convert into tuples | |
var primary = reduce(mocks.primary.videos, intoTupleList(3), []) | |
, secondary = reduce(mocks.secondary.videos, intoTupleList(2), []) | |
, random = mocks.random.videos | |
// zip tuples together | |
var zipped = zip([primary, secondary, random], concat) | |
// flatten zipped tuples | |
return concat.apply([], zipped) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment