Commit d7e9872a authored by Martin Spoto's avatar Martin Spoto
Browse files

transform to foreach loop

parent 6f4d1cf4
......@@ -36,13 +36,13 @@ public final class ProloGraalRuntime {
// put every clauses into the map
for (int i = 0; i < clauseList.size(); i++) {
for (ProloGraalClause clause : clauseList) {
// create a new list if there is none for the current clause's head
clauses.putIfAbsent(clauseList.get(i).getHead(), new ArrayList<>());
clauses.putIfAbsent(clause.getHead(), new ArrayList<>());
// retrieve the list linked to the head of the current clause
List<ProloGraalClause> clauses1 = clauses.get(clauseList.get(i).getHead());
List<ProloGraalClause> clauses1 = clauses.get(clause.getHead());
// add this clause into the map
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment