Libraryless. Click here for Pure Java version (5951L/38K).
static <A> A nuLike too_thinkAndReturnLastObjectOfType(Class<A> type, TransformersOnObjects too) { new Var<A> out; too.addTransformer(func(O o) { if (isInstance(type, o)) out.set((A) o); null; }); too.think(); ret out!; }
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: | 419 / 537 | 
| Referenced in: | [show references] |