London Lambdas Hackday: Developer Practices
Richard Warburton
richard.warburton at gmail.com
Wed Jul 4 06:48:43 PDT 2012
> Nevertheless, you can use two workarounds in this situation. 1/ As Brian
> said, insert a print call in the chaining, but you need the tee method and
> you cannot use this with a debugger. 2/ You can put part of the chaining in
You could use a debugger if you had used empty function and
breakpointed on that:
list.filter(...)
.tee(x -> {}) // breakpoint within this lambda
.map(...)
It's still a hack though. Furthermore it potentially alters the
evaluation pattern of the expression depending upon whether its
chaining a lazy or strict collection.
regards,
Richard
More information about the lambda-dev
mailing list