1 | static Int collectMinInt(L l, S field) {
|
2 | Int min = null; |
3 | for (O x : l) {
|
4 | O o = getOpt(x, field); |
5 | if (o instanceof Number) |
6 | min = xmin(min, toInt(o)); |
7 | } |
8 | ret min; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006350 |
| Snippet name: | collectMinInt - get smallest value of int field from objects |
| Eternal ID of this version: | #1006350/2 |
| Text MD5: | 47e5a619fc0218a971348b7201bbc856 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-03 00:28:00 |
| Source code size: | 191 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 784 / 821 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |