Libraryless. Click here for Pure Java version (3431L/19K).
1 | sS replaceDollarVars(S s, O... params) {
|
2 | if (empty(params)) ret s; |
3 | MapSO vars = mapKeys dropDollarPrefix((MapSO) litcimap(params)); |
4 | ret replaceDollarVars_dyn(s, var -> strOrNull(vars.get(var))); |
5 | } |
6 | |
7 | sS replaceDollarVars(S s, IF1<S> f) {
|
8 | ret replaceDollarVars_dyn(s, f); |
9 | } |
Began life as a copy of #1028669
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028680 |
| Snippet name: | replaceDollarVars - does not use a tokenizer |
| Eternal ID of this version: | #1028680/5 |
| Text MD5: | 2417c29771334df56e876aee0a6f6650 |
| Transpilation MD5: | dad7cf24a32673241760436a644a21ea |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-06 01:54:55 |
| Source code size: | 286 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 630 / 834 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |