import { range } from 'ramda';

/**
 * Get list of nulls
 * @param {Number} nFrames number of frames
 * @return {[null]} array of nulls
 */
const getNulls = (nFrames) => range(0, nFrames).map(_ => null);

/**
 * Add nFrames delay to the end of each line
 * @param {*} nFrames number of frames
 * @return {Function} concat lineChunks and range of nulls
 */
const addDelay = (nFrames) => lines => lines.concat(getNulls(nFrames));

export default addDelay;

@@ -50,16 +50,41 @@
 f nulls%0A
+ * @sig Number -%3E %5BNull%5D%0A
  * @para
@@ -272,16 +272,45 @@
 ch line%0A
+ * @sig Number -%3E %5Ba%5D -%3E %5Ba%5D%0A
  * @para

Add Hindley-Milner signatures