1 | static short shortMin(Iterable<Short> l) {
|
2 | int min = Short.MAX_VALUE; |
3 | fOr (short d : l) |
4 | min = Math.min(min, d); |
5 | ret (short) min; |
6 | } |
7 | |
8 | static short shortMin(short[] l) {
|
9 | int min = Short.MAX_VALUE; |
10 | fOr (short d : l) |
11 | min = Math.min(min, d); |
12 | ret (short) min; |
13 | } |
Began life as a copy of #1030115
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032410 |
| Snippet name: | shortMin |
| Eternal ID of this version: | #1032410/4 |
| Text MD5: | dbc09e0c9836704900bec49736249c66 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-03 02:15:09 |
| Source code size: | 286 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 324 / 381 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |