Libraryless. Click here for Pure Java version (5001L/28K).
static <A> void forEachWithPosition(Matrix<A> m, IVF3<Int, Int, A> f) { if (m == null || f == null) ret; int w = m.getWidth(), h = m.getHeight(); for y to h: for x to w: f.get(x, y, m.get(x, y)); }
Began life as a copy of #1022895
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033387 |
Snippet name: | forEachWithPosition |
Eternal ID of this version: | #1033387/3 |
Text MD5: | 8556a38fc0029326bff6273a8ad81c25 |
Transpilation MD5: | d036378fe7a648e26e6213f4e2c74c84 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-27 00:47:10 |
Source code size: | 219 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 136 / 198 |
Version history: | 2 change(s) |
Referenced in: | [show references] |