From 82d05315ab8fb0f7864f3c5d9c533b569cd7102c Mon Sep 17 00:00:00 2001 From: kalmar Date: Mon, 15 May 2017 09:52:10 +0200 Subject: [PATCH] coercion of AutSymbol to AutGroupElem --- src/AutGroup.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AutGroup.jl b/src/AutGroup.jl index 304483a..a48577e 100644 --- a/src/AutGroup.jl +++ b/src/AutGroup.jl @@ -145,6 +145,12 @@ function (F::AutGroupElem)(v::Vector) return v end +function (G::AutGroup)(f::AutSymbol) + g = AutGroupElem(f) + g.parent = G + return g +end + ############################################################################### # # Basic manipulation