Skip to main content
deleted 33 characters in body
Source Link
Andreas Louv
  • 1.7k
  • 13
  • 25

Perl 6, 52~72 47~67 bytes

This can properly be shorter:

sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}'
(1 1 1 3 5 9 17 31)

Perl 6, 52~72 47~67 bytes

This can properly be shorter:

sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}'
(1 1 1 3 5 9 17 31)

Perl 6, 52~72 47~67 bytes

sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}'
(1 1 1 3 5 9 17 31)
added 7 characters in body
Source Link
Andreas Louv
  • 1.7k
  • 13
  • 25

Perl 6, 58~7852~72 47~67 bytes

This can properly be shorter:

sub a($n,$x){EVAL("("~"1"1,"x$n~"*"~"+*"x$n-1~""x$n~"+*"x$n~"...*)[^$x]"*")[^$x]}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("("~"1"1,"x$n~"*"~"+*"x$n-1~""x$n~"+*"x$n~"...*)[^$x]"*")[^$x]}'
(1 1 1 3 5 9 17 31)

Perl 6, 58~78 bytes

This can properly be shorter:

sub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}'
(1 1 1 3 5 9 17 31)

Perl 6, 52~72 47~67 bytes

This can properly be shorter:

sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("1,"x$n~"+*"x$n~"...*")[^$x]}'
(1 1 1 3 5 9 17 31)
added 7 characters in body
Source Link
Andreas Louv
  • 1.7k
  • 13
  • 25

Perl 6, 62~8258~78 bytes

This can properly be shorter:

my$n=3;my$x=8;saysub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'my$n=3;my$x=8;saye'a(3,8).say;sub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}'
(1 1 1 3 5 9 17 31)

Perl 6, 62~82 bytes

This can properly be shorter:

my$n=3;my$x=8;say EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

perl6 -MMONKEY-SEE-NO-EVAL -e'my$n=3;my$x=8;say EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")'

Perl 6, 58~78 bytes

This can properly be shorter:

sub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}

Requires the module MONKEY-SEE-NO-EVAL, because of the following error:

===SORRY!=== Error while compiling -e
EVAL is a very dangerous function!!! (use MONKEY-SEE-NO-EVAL to override,
but only if you're VERY sure your data contains no injection attacks)
at -e:1

$ perl6 -MMONKEY-SEE-NO-EVAL -e'a(3,8).say;sub a($n,$x){EVAL("("~"1,"x$n~"*"~"+*"x$n-1~"...*)[^$x]")}'
(1 1 1 3 5 9 17 31)
Post Undeleted by Andreas Louv
Post Deleted by Andreas Louv
Source Link
Andreas Louv
  • 1.7k
  • 13
  • 25
Loading