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

7
LINES

< > BotCompany Repo | #1036063 // takeFirstShuffled - take first n after shuffling the list

JavaX fragment (include)

1  
static <A> L<A> takeFirstShuffled(int n, L<A> l) {
2  
  ret takeFirst(n, shuffledIterator(l));
3  
}
4  
5  
static <A> L<A> takeFirstShuffled(L<A> l, int n) {
6  
  ret takeFirstShuffled(n, l);
7  
}

Author comment

Began life as a copy of #1017660

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036063
Snippet name: takeFirstShuffled - take first n after shuffling the list
Eternal ID of this version: #1036063/2
Text MD5: 1e0faa6c13378540a35d6cf3c8d3509c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-05 01:35:56
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 153
Version history: 1 change(s)
Referenced in: [show references]