Skip to content

Commit

Permalink
arity
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Nov 27, 2024
1 parent 78eff5c commit 53eb9a8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected AbstractTreeNode(List<NODE_TYPE> children) {

@Override
public NODE_TYPE child(int index) {
return children.get(index);
return children().get(index);
}

@Override
Expand All @@ -74,6 +74,7 @@ public void setMutableState(String key, Object state) {
}

public int arity() {
return children.size();
// for flatten and / or, arity is the count of flatten children
return children().size();
}
}

0 comments on commit 53eb9a8

Please sign in to comment.