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); }
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: | 399 / 456 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |