{"action":"opened","issue":{"url":"https://api.github.com/repos/ParallelME/compiler/issues/7","repository_url":"https://api.github.com/repos/ParallelME/compiler","labels_url":"https://api.github.com/repos/ParallelME/compiler/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ParallelME/compiler/issues/7/comments","events_url":"https://api.github.com/repos/ParallelME/compiler/issues/7/events","html_url":"https://github.com/ParallelME/compiler/issues/7","id":146982763,"number":7,"title":"Add support for nested loops","user":{"login":"wcmjunior","id":796900,"avatar_url":"https://avatars.githubusercontent.com/u/796900?v=3","gravatar_id":"","url":"https://api.github.com/users/wcmjunior","html_url":"https://github.com/wcmjunior","followers_url":"https://api.github.com/users/wcmjunior/followers","following_url":"https://api.github.com/users/wcmjunior/following{/other_user}","gists_url":"https://api.github.com/users/wcmjunior/gists{/gist_id}","starred_url":"https://api.github.com/users/wcmjunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcmjunior/subscriptions","organizations_url":"https://api.github.com/users/wcmjunior/orgs","repos_url":"https://api.github.com/users/wcmjunior/repos","events_url":"https://api.github.com/users/wcmjunior/events{/privacy}","received_events_url":"https://api.github.com/users/wcmjunior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T16:56:58Z","updated_at":"2016-04-08T16:56:58Z","closed_at":null,"body":"Currently, nested loops are not supported, but examples like the following should be made possible:\r\n\r\n```java\r\n    array1.par().foreach(new UserFunction<Type1>() {\r\n        public void function(Type1 tp1) {\r\n            array2.par().foreach(new UserFunction<Type2>() {\r\n                public void function(Type2 tp2) {\r\n                    type2.someProperty = type1.someProperty;\r\n                    ...\r\n                }\r\n            });\r\n        }\r\n    });\r\n```"}}