static PairS splitTrailingSquareBracketStuff(S s) { if (!endsWith(s, "]")) ret pair(s, ""); int i = smartLastIndexOf(s, '['); ret pair(trimSubstring(s, 0, i), substring(s, i+1, l(s)-1)); }
Began life as a copy of #1016485
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021537 |
Snippet name: | splitTrailingSquareBracketStuff - always returns a pair |
Eternal ID of this version: | #1021537/3 |
Text MD5: | 0360867baacfd7ddc9e791f85b4881df |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-26 09:15:27 |
Source code size: | 198 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 334 / 352 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |