Typed Pairs

2019-09-05 Thread Mikkel
Array[Str]] @!properties; Except this wont work. Best regards Mikkel

Re: Checking If a certain object is present in Array

2019-08-15 Thread Mikkel
Thank you. This was what i were looking for. /mikkel On Thu, 15 Aug 2019 at 17:59, Simon Proctor wrote: > Oh. That's easy use an any junction. > > say any(@objects) ~~ Bool; > > On Thu, 15 Aug 2019 at 16:10, Mikkel wrote: > >> Hi Simon >> >> That was c

Re: Checking If a certain object is present in Array

2019-08-15 Thread Mikkel
Hi Simon That was certainly a simple way. But this checks for the value of True rather than the object type Bool right? What if I wanted to know if an Int, (with any given value) were among the values? Best regards Mikkel On Thu, 15 Aug 2019 at 16:38, Simon Proctor wrote: > The easiest opt

Checking If a certain object is present in Array

2019-08-15 Thread Mikkel
se whether the given object is present or not? Best Regards Mikkel Birkedam

Typed Arrays and for-loops

2019-02-13 Thread Mikkel
h("Test"); [Test] > $files.push("Test 2"); [Test Test 2] > for $files -> Str $f {.say} Type check failed in binding to parameter '$f'; expected Str but got Array[Str] (Array[Str].new("Test", "Test 2")) in block at line 1 Best regards Mikkel Birkedam