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

7
LINES

< > BotCompany Repo | #1008530 // mapPair - synonym of pairMap - apply function to both elements of a pair

JavaX fragment (include)

1  
static Pair mapPair(O f, Pair p) {
2  
  ret pairMap(f, p);
3  
}
4  
5  
static Pair mapPair(Pair p, O f) {
6  
  ret pairMap(f, p);
7  
}

Author comment

Began life as a copy of #1008382

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008530
Snippet name: mapPair - synonym of pairMap - apply function to both elements of a pair
Eternal ID of this version: #1008530/1
Text MD5: 286bc3768c0133a9ab795abea9106fb9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-21 10:34:20
Source code size: 124 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 497 / 520
Referenced in: [show references]