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

3
LINES

< > BotCompany Repo | #1003900 // firstIs - compare first element of list to smth

JavaX fragment (include)

static <A> bool firstIs(L<A> l, A a) {
  ret eq(get(l, 0), a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003900
Snippet name: firstIs - compare first element of list to smth
Eternal ID of this version: #1003900/1
Text MD5: d92dcc8cb13ee6fbbfac3552c6748d0f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-30 15:22:25
Source code size: 66 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 536 / 522
Referenced in: [show references]