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

10
LINES

< > BotCompany Repo | #1017327 // ai_parser1_multipleCategories

JavaX fragment (include)

static L<ParseResult1> ai_parser1_multipleCategories(S input, Collection<S> categories) {
  new L<ParseResult1> results;
  for (S cat : categories)
    results.addAll(ai_parser1(input, cat));
  ret takeFirst(10, parseResultsSortedByNumberOfAssumptions(results));
}

static L<ParseResult1> ai_parser1_multipleCategories(S input, S... categories) {
  ret ai_parser1_multipleCategories(input, asList(categories));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017327
Snippet name: ai_parser1_multipleCategories
Eternal ID of this version: #1017327/5
Text MD5: ea99d34e02cbf17361f9beff43d80b29
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-17 16:59:32
Source code size: 421 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 367
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)