Re: How to use sub/method 'dir'

2018-11-26 Thread Trey Harris
On Mon, Nov 26, 2018 at 19:26 Trey Harris wrote: > > > On Mon, Nov 26, 2018 at 04:56 Fernando Santagata < > nando.santag...@gmail.com> wrote: > >> On Sun, Nov 25, 2018 at 5:34 PM Brad Gilbert wrote: >> >>> The reason `dir('a', test => { .IO.d })` doesn't work like you expect >>> is that it is

Re: How to use sub/method 'dir'

2018-11-26 Thread Trey Harris
On Mon, Nov 26, 2018 at 04:56 Fernando Santagata wrote: > On Sun, Nov 25, 2018 at 5:34 PM Brad Gilbert wrote: > >> The reason `dir('a', test => { .IO.d })` doesn't work like you expect >> is that it is passed strings. >> > > Thank you! > I could have inferred that from the declaration of the

Re: How to use sub/method 'dir'

2018-11-26 Thread Fernando Santagata
On Sun, Nov 25, 2018 at 5:34 PM Brad Gilbert wrote: > The reason `dir('a', test => { .IO.d })` doesn't work like you expect > is that it is passed strings. > Thank you! I could have inferred that from the declaration of the 'test' argument here https://docs.perl6.org/routine/dir where the test