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

3
LINES

< > BotCompany Repo | #1026448 // rcurry1 - right-curry a two-argument function lambda-style (returning a one-argument function)

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

Libraryless. Click here for Pure Java version (2141L/14K).

static <A, B, C> IF1<A, C> curry1Like rcurry1(IF2<A, B, C> f, B b) {
  ret f == null ? null : a -> f.get(a, b);
}

Author comment

Began life as a copy of #1011132

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026448
Snippet name: rcurry1 - right-curry a two-argument function lambda-style (returning a one-argument function)
Eternal ID of this version: #1026448/5
Text MD5: 519497870f7cdd960fc7a35102ebb55c
Transpilation MD5: a945e9f405db75d74d360842ea4c414a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-04 17:32:16
Source code size: 115 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 181 / 277
Version history: 4 change(s)
Referenced in: [show references]