all imlementations using CycleJS all imlementations of Interval

an xstream, driver implementation
of the Interval demo using CycleJS



import xs from 'xstream'

const makeIteratorDriver = arr => () => {
  return xs.periodic(1500).startWith(-1).map(
    n => arr[(n + 1) % arr.length]
  )
}

export default makeIteratorDriver