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

5
LINES

< > BotCompany Repo | #1002564 // isNo

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

Libraryless. Click here for Pure Java version (1712L/11K).

static L<S> isNo_noes = litlist("n", "no", "nope", "nay", "nah", "nein", "njet", "nee", "nö", "niemals");

static boolean isNo(S s) {
  ret isNo_noes.contains(collapseWord(toLowerCase(get(parse3(s), 1))));
}

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: #1002564
Snippet name: isNo
Eternal ID of this version: #1002564/3
Text MD5: 39a070c9866948cb50d7b28c49330922
Transpilation MD5: bd7eef00e46ad065d0e9f1b4ccb5464a
Author: stefan
Category: eleu
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-24 16:37:46
Source code size: 212 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 736 / 776
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)