Skip to content

Instantly share code, notes, and snippets.

@reevik
Last active February 14, 2022 20:02
Show Gist options
  • Save reevik/72ff82d310540c2bfab3a9b539430051 to your computer and use it in GitHub Desktop.
Save reevik/72ff82d310540c2bfab3a9b539430051 to your computer and use it in GitHub Desktop.
(1 to m).flatMap(i =>
(1 to n).filter(j => i > j)
map(k => (i, k)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment