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

6
LINES

< > BotCompany Repo | #1003342 // dialogs2occTree

JavaX fragment (include)

static OccTree<E> dialogs2occTree(L<Dialog> dialogs) {
  new OccTree<E> tree;
  for (Dialog d : dialogs)
    tree.add(listPlus(d.poem, E.state(d.good ? "good" : "bad")));
  ret tree;
}

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: #1003342
Snippet name: dialogs2occTree
Eternal ID of this version: #1003342/1
Text MD5: 615be927f5aafca0a6d4514bb520925c
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-19 22:46:20
Source code size: 189 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 426 / 460
Referenced in: #1003361 - poems2occTree
#1003404 - goodDialogs2occTree - "good" dialogs only
#1006654 - Standard functions list 2 (LIVE, continuation of #761)