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

7
LINES

< > BotCompany Repo | #1028831 // mapBasicLogicRule - apply function to both sides of a rule

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

Transpiled version (2496L) is out of date.

1  
static <A> BasicLogicRule<A> lambdaMapLike mapBasicLogicRule(IF1<A> f, BasicLogicRule<A> r) {
2  
  ret r == null ? null : BasicLogicRule<A>(f.get(r.lhs), f.get(r.rhs));
3  
}
4  
5  
static <A> BasicLogicRule<A> lambdaMapLike mapBasicLogicRule(BasicLogicRule<A> r, IF1<A> f) {
6  
  ret mapBasicLogicRule(f, r);
7  
}

Author comment

Began life as a copy of #1008382

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: #1028831
Snippet name: mapBasicLogicRule - apply function to both sides of a rule
Eternal ID of this version: #1028831/6
Text MD5: 61af658dfaf12ee126d7e29cd950aac0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 14:49:06
Source code size: 297 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 239
Version history: 5 change(s)
Referenced in: [show references]