x/rambda/source/nextIndex.js
1234export function nextIndex(index, list){ return index >= list.length - 1 ? 0 : index + 1}