Keep It Simple, Stupid | |
PerlMonks |
Re^2: Kronecker Productby choroba (Cardinal) |
on Jun 21, 2022 at 12:56 UTC ( [id://11144902]=note: print w/replies, xml ) | Need Help?? |
Thanks, that's exactly the reply I was waiting for. I see no difference between your solution and mine in the benchmark, but I definitely understand your points and see the improvement in the code. Are you aware of any reading on "array languages" that would be understandable to tyros? I understand your solution but I can't imagine how to get to it (to get mine, I used trial and error repeatedly).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|