wqferr / functional

Functional programming utilities implemented in pure Lua.
https://wqferr.github.io/functional/
MIT License
12 stars 0 forks source link

Create zip function #15

Closed wqferr closed 3 years ago

wqferr commented 3 years ago

Akin to python's zip.

Something like

function zip(...)
  local iter = base_iter(blabla)
  iter.sources = {...}
  return iter
end

It probably won't be able to be used in Teal until variadic type arguments is stable.