This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
tbrowder ah, @jnthn's OO::Monitors ... 00:32
tbrowder eureka, it worked!! 01:07
antononcube "Monitorika!", maybe?!
lucs Is there an operator or routine that can give me the quotient and remainder of integer division? 05:48
my ($quot, $rest) = Foo(13, 5) # Would give (2, 3). 05:49
(I can use div and mod, I'm just lazy.) 05:53
Oh: 06:07
m: sub infix:<dm>(Int $num, Int $div) { return ($num div $div, $num mod $div) }; say 13 dm 5
camelia (2 3)
lucs (but for some reason it kept failing in the REPL)
nahita3882 lucs: perhaps docs.raku.org/type/Int#method_polymod 09:29
scullucs Nahita: Ah, thanks. I'd probably seen that in the past, just didn't quite remember. 15:21