Write a Python function called pairwise(src, end= UNSET) that takes an iterable src and an optional end…
Write a Python function called pairwise(src, end= UNSET) that takes an iterable src and an optional end…: a task in repo2rlenv-r2e (Harbor dataset). Observable behavior: - Without end : returns a list of (src i , src i+1 ) pairs for all valid consecutive positions. An empty iterable returns . A…
Part of FineEnvs/repo2rlenv-r2e.