Skip to content

Commit

Permalink
Merge pull request #33 from nossleinad/getnodelist/return-type
Browse files Browse the repository at this point in the history
Type getnodelist and co. return arrays
  • Loading branch information
nossleinad authored Aug 5, 2024
2 parents 44a060d + 64efb0a commit cb66020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/nodes/AbstractTreeNode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ end

export getnodelist
function getnodelist(node::T) where {T<:AbstractTreeNode}
nodelist = []
nodelist = T[]
nodes = [node]
while nodes != []
node = pop!(nodes)
Expand Down Expand Up @@ -391,7 +391,7 @@ end

export getnonleaflist
function getnonleaflist(node::T) where {T<:AbstractTreeNode}
nonleaflist = []
nonleaflist = T[]
nodes = [node]
while nodes != []
node = pop!(nodes)
Expand All @@ -407,7 +407,7 @@ end

export getleaflist
function getleaflist(node::T) where {T<:AbstractTreeNode}
leaflist = []
leaflist = T[]
nodes = [node]
while nodes != []
node = pop!(nodes)
Expand Down

0 comments on commit cb66020

Please sign in to comment.