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

2
LINES

< > BotCompany Repo | #1025552 // takeFirst_string function (same as takeFirst, but less footprint)

JavaX fragment (include)

static S takeFirst_string(int n, S s) { ret substring(s, 0, n); }
static S takeFirst_string(S s, int n) { ret substring(s, 0, n); }

Author comment

Began life as a copy of #1007549

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025552
Snippet name: takeFirst_string function (same as takeFirst, but less footprint)
Eternal ID of this version: #1025552/1
Text MD5: 8de7be250e1638a5b43596df5d80ebe0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-03 13:08:30
Source code size: 132 bytes / 2 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 239
Referenced in: [show references]