Skip to content

Commit fc68cb6

Browse files
committed
Fix ordering bug in Computers.match
1 parent 5affa8e commit fc68cb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

templates/main/java/org/scijava/ops/function/Computers.list

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ arities = (0..maxArity).collect()
55
nilArgs = ```
66
{ arity ->
77
names = nilNames(arity)
8-
names.swap(0, names.size() - 1)
8+
output = names.remove(names.size() - 1)
9+
names.add(0, output)
910
String.join(', ', names)
1011
}
1112
```

0 commit comments

Comments
 (0)