Skip to content

Instantly share code, notes, and snippets.

@breeze1990
Last active August 29, 2015 14:15
Show Gist options
  • Save breeze1990/ffcf00f07293d3195ad3 to your computer and use it in GitHub Desktop.
Save breeze1990/ffcf00f07293d3195ad3 to your computer and use it in GitHub Desktop.
Nested loop equivalent. for i=1 to n, for j=i+1 to n;
comb lst = [0..(length lst-1)] >>= \i -> drop (i+1) lst >>= \j -> return (lst !! i, j)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment