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

3
LINES

< > BotCompany Repo | #1005561 // mapIfFunctionNotNull - map if f != null, otherwise return list

JavaX fragment (include)

static L mapIfFunctionNotNull(O f, Collection c) {
  ret f == null ? asList(c) : map(f, c);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005561
Snippet name: mapIfFunctionNotNull - map if f != null, otherwise return list
Eternal ID of this version: #1005561/1
Text MD5: e20ac3cb777bae34416df3efa4e63fc5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-27 14:05:15
Source code size: 95 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 524 / 533
Referenced in: [show references]