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

11
LINES

< > BotCompany Repo | #1022088 // gazelle_revisitAllLinesInChannel

JavaX fragment (include)

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

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: 191 / 227
Version history: 6 change(s)
Referenced in: [show references]