Libraryless. Click here for Pure Java version (9940L/54K).
static <A> A assertEqualsOneOf(A x, A... l) { fOr (A y : l) if (eq(x, y)) ret x; fail(x + " not found in " + asList(l)); }
Began life as a copy of #1027813
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036504 |
Snippet name: | assertEqualsOneOf |
Eternal ID of this version: | #1036504/1 |
Text MD5: | c1d4ae093ed592a2dc122e9d01b694e0 |
Transpilation MD5: | 1f4222b3f7cbc901c6d8936de38bea51 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-16 13:58:08 |
Source code size: | 141 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 141 / 196 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |