Libraryless. Click here for Pure Java version (10392L/74K).
1 | static LS switcheroo_iToSpeakersName(LS sentences) { |
2 | S name = firstMatchesX_rest("My name is ...", sentences); |
3 | if (empty(name)) |
4 | fail("Can't find out speaker's name:\n" + lines(sentences)); |
5 | ret map_curry switcheroo_iToName(curly(name), sentences); |
6 | } |
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: | #1023802 |
Snippet name: | switcheroo_iToSpeakersName - make a magical attempt to find out the speaker's name |
Eternal ID of this version: | #1023802/1 |
Text MD5: | a983fc8dbc9ea37130b6e0108f36e1d1 |
Transpilation MD5: | 3d349209b7a816dde1458e1c0715c841 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-09 12:28:26 |
Source code size: | 263 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 295 |
Referenced in: | [show references] |