Skip to content

Commit

Permalink
fixup: applyFunctor
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Jan 14, 2024
1 parent fee3205 commit 151c321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/functors.m2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ applyMethod'' = (F, X) -> (
-- TODO: combine for all functors
-- used in Ext
applyMethodWithOpts' = (key, desc, X, opts) -> (
if (F := lookup key) =!= null then (F opts) X
if (F := lookup key) =!= null then if options F =!= null then (F opts) X else F X
else error("no method for ", desc, " applied to ", X))

applyMethodWithOpts'' = (F, X, opts) -> (
Expand Down

0 comments on commit 151c321

Please sign in to comment.