From 7989967cc40c5cec1f3c7bd751722118c507fc34 Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 21 Jul 2017 13:27:27 +0200 Subject: [PATCH] vararg version of overload -- with mandatory checking --- src/DirectProducts.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DirectProducts.jl b/src/DirectProducts.jl index 6386982..9e8f45d 100644 --- a/src/DirectProducts.jl +++ b/src/DirectProducts.jl @@ -87,6 +87,8 @@ end (G::DirectProductGroup)(g::DirectProductGroupElem) = G(g.elts) +(G::DirectProductGroup){T<:GroupElem, N}(a::Vararg{T, N}) = G([a...]) + ############################################################################### # # Basic manipulation