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

15
LINES

< > BotCompany Repo | #1000489 // Drop every other (learner)

JavaX fragment (include)

java.lang.RuntimeException: java.io.IOException: Snippet #1000489 not found or not public
	at main.rethrow(m1008705.java:173)
	at main.loadSnippet(m1008705.java:342)
	at main.html2(m1008705.java:83)
	at main.html(m1008705.java:67)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at main.invokeMethod(m1008705.java:1601)
	at main.callOpt_withVarargs(m1008705.java:4387)
	at main.callOpt(m1008705.java:3326)
	at main.callHtmlMethod2(m1008705.java:11404)
	at main$MyHTTPD$1.get(m1008705.java:7337)
	at main$MyHTTPD$1.get(m1008705.java:1)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at main.invokeMethod(m1008705.java:1601)
	at main.safeCallF(m1008705.java:642)
	at main.callF(m1008705.java:611)
	at main$MyHTTPD.serve(m1008705.java:7373)
	at main$NanoHTTPD.serve_2(m1008705.java:9572)
	at main$NanoHTTPD.serve(m1008705.java:9553)
	at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453)
	at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: Snippet #1000489 not found or not public
	at main.loadSnippet_noResourceLoader(m1008705.java:395)
	at main.loadSnippet(m1008705.java:365)
	at main.loadSnippet(m1008705.java:341)
	... 21 more

Author comment

Typed on the tablet - that's why it's so short!

But why not always program this way? We just need an expander (translator).

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

Comments [hide]

ID Author/Program Comment Date
868 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
ln dropeveryother {
boolean b;

io(L in, L out) {
if (!in.isEmpty())
b = in[0] == out[0];
}

i(L in) {
new L out;
for (int i = b ? 0 : 1; i < #in; i += 2)
out.add(in[i]);
ret out;
}
}
}}
2015-08-19 22:48:26  delete 
791 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

Snippet ID: #1000489
Snippet name: Drop every other (learner)
Eternal ID of this version: #1000489/1
Text MD5: 58143651f8040a1adcec87dc0df28caf
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-09 16:25:15
Source code size: 235 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1671 / 1556
Referenced in: #1000491 - Fix typo at end of source
#1000496 - Buggy script
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)