Libraryless. Click here for Pure Java version (5951L/38K).
1 | static <A> A nuLike too_thinkAndReturnLastObjectOfType(Class<A> type, TransformersOnObjects too) { |
2 | new Var<A> out; |
3 | too.addTransformer(func(O o) { |
4 | if (isInstance(type, o)) |
5 | out.set((A) o); |
6 | null; |
7 | }); |
8 | too.think(); |
9 | ret out!; |
10 | } |
Began life as a copy of #1028840
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028936 |
Snippet name: | too_thinkAndReturnLastObjectOfType |
Eternal ID of this version: | #1028936/1 |
Text MD5: | 5867dee55f8edd03c758a8ab38fca302 |
Transpilation MD5: | d6ac1674ae0882449c1c908fec0c6e6c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-12 12:54:39 |
Source code size: | 254 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 178 / 254 |
Referenced in: | [show references] |