italways refers to the innermost lambda parameter, in order to access the outer ones you have to name them. For instance:
list1.filter { a -> list2.none { b -> a.weekday == b.weekday && a.time == b.time} }
(You can leave the inside like it, but it's a little better if you call it too, in my opinion.)
Edit: @ mfulton26 linked the related documentation below, see this for more details.
source
share