Skip to content

Commit

Permalink
Rule refactoring terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-milella committed Oct 25, 2024
1 parent 6eb45f4 commit 374e12b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ end

# Helper: slice a Rule's antecedent
# TODO remove?
# from michi and mauro, 25/10/24:
# currently this is not covered by tests here, but could be used in SolePostHoc.jl
function Base.getindex(
m::Rule{O},
idxs::AbstractVector,
Expand All @@ -357,7 +359,8 @@ function Base.getindex(
Rule{O}(typeof(a)(children(a)[idxs]), consequent(m))
end


############################################################################################
###################################### Branch ##############################################
############################################################################################

"""
Expand Down

0 comments on commit 374e12b

Please sign in to comment.