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

3
LINES

< > BotCompany Repo | #1030334 // lastMsgFromUserBefore

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2723L/17K).

static Msg lastMsgFromUserBefore(L<Msg> msgs, int i) {
  ret lastThat(takeFirst(msgs, i), m -> m.fromUser);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030334
Snippet name: lastMsgFromUserBefore
Eternal ID of this version: #1030334/1
Text MD5: e4b2aea0d1ac0bd62fa79a6a125c722a
Transpilation MD5: 88e235c93f236503c41b2af5c26eb113
Author: stefan
Category: javax / web chat bots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-04 17:24:29
Source code size: 111 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 125 / 177
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)