Skip to content

Instantly share code, notes, and snippets.

@KKostya
Created August 3, 2020 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KKostya/b9251ed473f574dd656b4f58dc02461d to your computer and use it in GitHub Desktop.
Save KKostya/b9251ed473f574dd656b4f58dc02461d to your computer and use it in GitHub Desktop.
pairwise = lambda b: zip(*((lambda a: (lambda x: (next(x[1]), x))((iter(a), iter(a))))(b)[1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment