diff options
| author | Simon Proctor <simon.proctor@zpg.co.uk> | 2019-11-26 10:13:39 +0000 |
|---|---|---|
| committer | Simon Proctor <simon.proctor@zpg.co.uk> | 2019-11-26 10:13:39 +0000 |
| commit | 949584b33ba36d151c3a700c0ed5d05232ff0cbd (patch) | |
| tree | ec3bc6eded91fcadecc4ce069580d90416eb8d70 /challenge-036/simon-proctor/perl6 | |
| parent | 42f02aa1199310f6ca041da4e92ffa1139d0534c (diff) | |
| download | perlweeklychallenge-club-949584b33ba36d151c3a700c0ed5d05232ff0cbd.tar.gz perlweeklychallenge-club-949584b33ba36d151c3a700c0ed5d05232ff0cbd.tar.bz2 perlweeklychallenge-club-949584b33ba36d151c3a700c0ed5d05232ff0cbd.zip | |
Added a final line to the Knapsack thing
Diffstat (limited to 'challenge-036/simon-proctor/perl6')
| -rw-r--r-- | challenge-036/simon-proctor/perl6/ch-2.p6 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/challenge-036/simon-proctor/perl6/ch-2.p6 b/challenge-036/simon-proctor/perl6/ch-2.p6 index efc64657cb..7bdeeae37b 100644 --- a/challenge-036/simon-proctor/perl6/ch-2.p6 +++ b/challenge-036/simon-proctor/perl6/ch-2.p6 @@ -27,4 +27,5 @@ sub MAIN( say "I think I'll take :"; .say for @options[0].list; + say "Which weighs {[+] @options[0].map(*.weight)}kg and is worth £{[+] @options[0].map(*.worth)}"; } |
