Libraryless. Click here for Pure Java version (8582L/48K).
persistable asclass AbstractMatrix<A> is Matrix<A> { int w, h; *(int *w, int *h) {} public int getWidth() { ret w; } public int getHeight() { ret h; } toString { ret flexLines( roundBracket(w+"x"+h), countIteratorToList(y -> str(getLine(y)), getHeight())); } public void set(int x, int y, A a) { unimplemented(); } }
Began life as a copy of #1033112
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033119 |
Snippet name: | AbstractMatrix |
Eternal ID of this version: | #1033119/8 |
Text MD5: | 97db7d1892a9285701543b2f8697fc90 |
Transpilation MD5: | e86c843e90dc979e90cd7239fe43f1e6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-20 20:20:54 |
Source code size: | 369 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 283 / 431 |
Version history: | 7 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |