Closed runeflobakk closed 10 years ago
Works as long as the mapping Fn is referentially transparent, but if it has side effects (e.g. printing to console or other IO) this will be performed twice.
Consider fasttrack-releasing fix for this as version 0.4.1.
Seems to be the case for both Optional and PreparedIterable. Create some thorough unit tests to prevent this kind of unwanted invocations.
False alarm... was fooled by the Eclipse debugger.
Works as long as the mapping Fn is referentially transparent, but if it has side effects (e.g. printing to console or other IO) this will be performed twice.
Consider fasttrack-releasing fix for this as version 0.4.1.