User talk:Wamba

From Rosetta Code

Hi, when marking the perl5 example for best shuffle as incorrect you need to move the longer explanation to the talk page as a sub-section, leaving just the {{incorrect|Perl 6|See xxx in talk page}}.

Thanks, --Paddy3118 (talk) 16:36, 24 June 2015 (UTC)

I removed explanation to the talk page. Is it OK now? --Wamba (talk) 18:40, 24 June 2015 (UTC)
many thanks Wamba. That's brill. Usually I manage to get the explanation into the incorrect message banner, but when you go to greater lengths and have code like you have, then it's best to put it in the talk page. Thanks again! --Paddy3118 (talk) 23:23, 24 June 2015 (UTC)

Markov chain text generator

Really good to get 'rotor' back into the Perl 6 solution, a definite improvement over the fix I made. But I think two details need to be taken care of:
• @prefix should contain strings, not lists (eg "Alice was" not ("Alice", "was")
• the routine needs to explicitly return a hash

So something along the lines of:

my @prefix.push: .join(' ') for @words.rotor: $n => -$n+1;
(%).push: @prefix Z=> @words[$n .. *];

--SqrtNegInf (talk) 17:08, 5 February 2017 (UTC)

Hi, first item is no problem because ( "Alice was" eq ("Alice", "was") ). Secondly, push is needed and It does not work rigth without. Thank you SqrtNegInf .
--Wamba (talk) 12:49, 6 February 2017 (UTC)