On Sat Jun 04 13:20:25 2016, elizabeth wrote: > The weird thing here is, is that somehow the List.iterator is used, > instead of the Array.iterator (which *does* take null values into > account, even makes them bindable) > > Is this still a problem on HEAD ?
Oops, didn't see your reply before posting my comment. Yes, it's still a problem on HEAD. I'm not really sure, but I think the NPE happens because somewhere in 'sub map' or 'method map' is a call to .list and we end up in List.iterator. Without the 'map' there is no problem: $ perl6-j -e 'my @array = 0..1; @array[0]:delete; say @array' [(Any) 1]