Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1032707 // pnl10 - print first 10 elements

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4328L/25K).

static <A extends Iterable> A pnl10(S prefix default "", A l) {
  pnl(prefix, takeFirst(10, l));
  ret l;
}

static <A> A[] pnl10(S prefix default "", A[] l) {
  pnl(prefix, takeFirst(10, asVirtualList(l)));
  ret l;
}

Author comment

Began life as a copy of #1008448

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032707
Snippet name: pnl10 - print first 10 elements
Eternal ID of this version: #1032707/4
Text MD5: 9420e9d0d4fe8dd02b6c99f5c3a9b21f
Transpilation MD5: 0415a697a153547a3758fb907fc7c90d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-02 06:32:55
Source code size: 228 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 214
Version history: 3 change(s)
Referenced in: [show references]