Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ main
Method
main
functional/FunctionComposition.java:16–19 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
14
f3 = s -> s.toLowerCase(),
15
f4 = f1.compose(f2).andThen(f3);
16
public
static
void
main(String[] args) {
17
System.out.println(
18
f4.apply(
"GO AFTER ALL AMBULANCES"
));
19
}
20
}
21
/* Output:
22
AFTER ALL AMBULANCES
Callers
nothing calls this directly
Calls
1
apply
Method · 0.65
Tested by
no test coverage detected