Libraryless. Click here for Pure Java version (2328L/16K/53K).
1 | !752 |
2 | |
3 | p { |
4 | makeBot("Look Up Standard Function Bot."); |
5 | } |
6 | |
7 | static S answer(S s) { |
8 | new Matches m; |
9 | if (match("look up *", s, m) || match("lookup *", s, m)) { |
10 | S fname = m.unq(0); |
11 | Map<S, S> map = parseStdFunctionsList(loadSnippet("#761")); |
12 | S id = map.get(fname); |
13 | if (id == null) |
14 | id = lookupIgnoreCase(map, fname); |
15 | if (id != null) |
16 | ret "tinybrain.de/" + parseSnippetID(id); |
17 | ret "function not found"; |
18 | } |
19 | null; |
20 | } |
Began life as a copy of #1001993
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001994 |
Snippet name: | Look Up Standard Function Bot |
Eternal ID of this version: | #1001994/1 |
Text MD5: | 6fbca8c65527002efa3e8f51fb2d20ac |
Transpilation MD5: | 33fca257ae17df8115cc81d034f88761 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-05-25 16:57:36 |
Source code size: | 465 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 750 / 2342 |
Referenced in: | [show references] |