Libraryless. Click here for Pure Java version (799L/6K/19K).
!752 answer { if (match("if * was yesterday, what will be tomorrow?", s, m) || match("if * was yesterday, what is tomorrow?", s, m) || match("if * was yesterday, tomorrow is...?", s, m)) ret toWeekDay(fromWeekDay(m.unq(0))+2); } static L<S> weekdays = litlist("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); static S toWeekDay(int n) { ret weekdays.get(mod(n, 7)); } static int fromWeekDay(S day) { ret indexOfIgnoreCase(weekdays, day); }
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