Re: Perl 6 memoization: factorial in rosettacode.org

2016-02-29 Thread Tom Browder
On Saturday, February 27, 2016, Shlomi Fish wrote: > Hi Tom, > > On Sat, 27 Feb 2016 05:52:45 -0600 > Tom Browder wrote: > > > On rosettacode.org there is an example of memoization for calculating > > factorials in Perl 6 (contributed by Larry Wall): > > > > constant fact = 1, |[\*] 1..*; > >

Re: Perl 6 memoization: factorial in rosettacode.org

2016-02-28 Thread Lloyd Fournier
You can put 'constant fact is export = ' On Sun, 28 Feb 2016 at 3:57 AM, Shlomi Fish wrote: > Hi Tom, > > On Sat, 27 Feb 2016 05:52:45 -0600 > Tom Browder wrote: > > > On rosettacode.org there is an example of memoization for calculating > > factorials in Perl 6 (contributed by Larry Wall):

Re: Perl 6 memoization: factorial in rosettacode.org

2016-02-27 Thread Shlomi Fish
Hi Tom, On Sat, 27 Feb 2016 05:52:45 -0600 Tom Browder wrote: > On rosettacode.org there is an example of memoization for calculating > factorials in Perl 6 (contributed by Larry Wall): > > constant fact = 1, |[\*] 1..*; > say fact[5]; > > How does one code that so that results are able to

Perl 6 memoization: factorial in rosettacode.org

2016-02-27 Thread Tom Browder
On rosettacode.org there is an example of memoization for calculating factorials in Perl 6 (contributed by Larry Wall): constant fact = 1, |[\*] 1..*; say fact[5]; How does one code that so that results are able to be reused by multiple programs? Thanks. Cheers! -Tom