Skip to main content
deleted 3 characters in body
Source Link
Kjetil S
  • 6.1k
  • 10
  • 22

Perl 5, 4341 bytes

sub{@a=2@a=1..pop;$"='*';map$_+1+eval"@a",1,@a}

Try it online!Try it online!

Perl 5, 43 bytes

sub{@a=2..pop;$"='*';map$_+1+eval"@a",1,@a}

Try it online!

Perl 5, 41 bytes

sub{@a=1..pop;$"='*';map$_+1+eval"@a",@a}

Try it online!

Source Link
Kjetil S
  • 6.1k
  • 10
  • 22

Perl 5, 43 bytes

sub{@a=2..pop;$"='*';map$_+1+eval"@a",1,@a}

Try it online!