Skip to content

Instantly share code, notes, and snippets.

@elbrujohalcon
Created September 19, 2018 12:04
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 elbrujohalcon/4c787937cb1052018a9546ef455c1466 to your computer and use it in GitHub Desktop.
Save elbrujohalcon/4c787937cb1052018a9546ef455c1466 to your computer and use it in GitHub Desktop.
1> A = [ [1,2,3],[4,5,6]].
[[1,2,3],[4,5,6]]
2> B = [ [a,b,c],[d,e,f]].
[[a,b,c],[d,e,f]]
3> [lists:zip(X, Y)|| X <- A, Y <- B].
[[{1,a},{2,b},{3,c}],
[{1,d},{2,e},{3,f}],
[{4,a},{5,b},{6,c}],
[{4,d},{5,e},{6,f}]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment