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

7
LINES

< > BotCompany Repo | #1021919 // unicodeSmileyIndices

JavaX fragment (include)

1  
static L<Int> unicodeSmileyIndices(S s) {
2  
  int n = l(s)-2;
3  
  new L<Int> l;
4  
  for i to n:
5  
    if (isUnicodeSmileyAtIndex(s, i)) l.add(i);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1021917

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1021919
Snippet name: unicodeSmileyIndices
Eternal ID of this version: #1021919/1
Text MD5: c75d1666cb82be14852d67d3a43305d0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-03 16:35:58
Source code size: 154 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 303
Referenced in: [show references]