Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1013414 // rule_numberOfTerms

JavaX fragment (include)

1  
/*
2  
  if input (how many terms do we have?)
3  
  and ($n = numberOfTermsInMainIndex())
4  
  then say (We have $n shortened terms.)
5  
*/
6  
static S rule_numberOfTerms() {
7  
  ai_checkInput_match3("how many terms do we have?");
8  
  long n = numberOfTermsInMainIndex();
9  
  ret replaceVars2("We have $n shortened terms.", "$n", formatWithThousands(n));
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013414
Snippet name: rule_numberOfTerms
Eternal ID of this version: #1013414/5
Text MD5: 7fa2c723f08f0c24a519d3ecb41cc7f8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-06 06:09:54
Source code size: 343 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 427 / 452
Version history: 4 change(s)
Referenced in: [show references]