The parameter should say gen.Span, otherwise the apply looks quite odd.