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

11
LINES

< > BotCompany Repo | #1022088 // gazelle_revisitAllLinesInChannel

JavaX fragment (include)

1  
static ItIt<GazelleRevisitedLine> gazelle_revisitAllLinesInChannel(long channelID, F0<GazelleEvalContext> contextMaker, O... _) {
2  
  L<GazelleLine> lines = dm_discord_linesInChannel(channelID);
3  
  new LS preContext;
4  
  ItIt<GazelleRevisitedLine> it = mapI(lines, line ->
5  
    nu GazelleRevisitedLine(+line,
6  
      tree := dm_gazelle_reasonAboutChatInput_v2(
7  
        line.user, line.text, paramsPlus(_, ctx := contextMaker!, +preContext)));
8  
  if (boolPar nemptyOnly(_))
9  
    it = filterIterator(it, func(GazelleRevisitedLine l) -> bool { nempty(l.tree) });
10  
  ret it;
11  
}

Author comment

Began life as a copy of #1022083

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1022088
Snippet name: gazelle_revisitAllLinesInChannel
Eternal ID of this version: #1022088/7
Text MD5: 50f9fca467ead960d8ccb2671c715884
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-07 15:55:32
Source code size: 571 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 277 / 312
Version history: 6 change(s)
Referenced in: [show references]