Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit269cbbc

Browse files
committed
Adding identity function overload
1 parent44324d4 commit269cbbc

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/com/jnape/palatable/lambda/functions/builtin/fn1

1 file changed

+4
-0
lines changed

‎src/main/java/com/jnape/palatable/lambda/functions/builtin/fn1/Id.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ public A checkedApply(A a) {
2323
publicstatic <A>Id<A>id() {
2424
return (Id<A>)INSTANCE;
2525
}
26+
27+
publicstatic <A>Aid(Aa) {
28+
returnId.<A>id().apply(a);
29+
}
2630
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp