swiftlang / swift-java

Apache License 2.0
724 stars 27 forks source link

Wrap java.util.function classes nicely in Swift #84

Open DougGregor opened 1 month ago

DougGregor commented 1 month ago

We should consider wrapping the Java classes from java.util.function as part of JavaKit, either the main module or a JavaKitFunction module. We should probably extend those wrapper types with callAsFunction overloads so they can be called directly from Swift.