| 1 | static <A> L<Triple<A, A, Int>> differencesElementByElement(L<A> a, L<A> b) {
 | 
| 2 | L<Triple<A, A, Int>> l = new L; | 
| 3 | if (l(a) != l(b)) ret l; | 
| 4 | int n = l(a); | 
| 5 |   for i to n: {
 | 
| 6 | A aa = a.get(i); | 
| 7 | A bb = b.get(i); | 
| 8 | if (neq(aa, bb)) | 
| 9 | l.add(triple(aa, bb, i)); | 
| 10 | } | 
| 11 | ret l; | 
| 12 | } | 
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009488 | 
| Snippet name: | differencesElementByElement | 
| Eternal ID of this version: | #1009488/3 | 
| Text MD5: | 863b61f805aa28d6a8b383367c58b21d | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-08-04 17:36:26 | 
| Source code size: | 291 bytes / 12 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 668 / 729 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |