deno.land / x / rambda@v9.1.1 / source / nextIndex.js
1234export function nextIndex(index, list){ return index >= list.length - 1 ? 0 : index + 1}
Version Info