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

3
LINES

< > BotCompany Repo | #1020649 // pairsMap - apply function to both parts of pairs

JavaX fragment (include)

static <A, B> LPair<B> mapLike pairsMap(fO f, LPair<A> l) {
  ret map(l, func(Pair<A> p) -> Pair<B> { mapPair(f, p) });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020649
Snippet name: pairsMap - apply function to both parts of pairs
Eternal ID of this version: #1020649/2
Text MD5: 22bb659fec93c212f2bb3e62cc97ba23
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-30 14:19:38
Source code size: 123 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 354
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)