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

8
LINES

< > BotCompany Repo | #1027989 // eqic_roundBracketed - eqic(a, round(b)) || eqic(b, round(a))

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

Libraryless. Click here for Pure Java version (2475L/16K).

sbool eqic_roundBracketed(S a, S b) {
  ret eqic_roundBracketed_oneWay(a, b)
    || eqic_roundBracketed_oneWay(b, a);
}

sbool eqic_roundBracketed_oneWay(S a, S b) {
  ret l(a) == l(b)+2 && eqic(a, "(" + b + ")");
}

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: #1027989
Snippet name: eqic_roundBracketed - eqic(a, round(b)) || eqic(b, round(a))
Eternal ID of this version: #1027989/1
Text MD5: 1385a8b269accc3914c0cb492124abf4
Transpilation MD5: ceec53468f5cee687641e850c62b5a73
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-23 12:46:51
Source code size: 222 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 208 / 296
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)