1 | scope words2_spaces_collapse_cached. |
2 | |
3 | static SS #cache = synchronizedMRUCache(defaultStringTransformerCacheSize()); |
4 | |
5 | static S words2_spaces_collapse_cached(S s) { |
6 | S out = cache.get(s); |
7 | if (out == null) cache.put(s, out = words2_spaces_collapse(s)); |
8 | ret out; |
9 | } |
10 | |
11 | end scope |
Began life as a copy of #1024405
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: | #1024409 |
Snippet name: | words2_spaces_collapse_cached |
Eternal ID of this version: | #1024409/1 |
Text MD5: | 8c006ca68a5f5ec622442abf4ef56138 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-10 17:24:28 |
Source code size: | 286 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 185 / 223 |
Referenced in: | [show references] |