-
-
Save woodie/276675 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo(a:int[]) | |
a.each {|x| x += 1;puts x; redo if x == 2} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated from redo.duby | |
public class redo extends java.lang.Object { | |
public static void main(java.lang.String[] argv) { | |
} | |
public static java.lang.Object foo(int[] a) { | |
__xform_tmp_1 = 0; | |
__xform_tmp_2 = a; | |
label3: | |
while ((__xform_tmp_1 < __xform_tmp_2.length)) { | |
x = __xform_tmp_2[__xform_tmp_1]; | |
boolean temp$5 = false; | |
label4: | |
do { | |
temp$5 = false; | |
x = (x + 1); | |
System.out.println(x); | |
if ((x == 2)) { | |
temp$5 = true; | |
continue label4; | |
} | |
} | |
while (temp$5); | |
__xform_tmp_1 = (__xform_tmp_1 + 1); | |
} | |
return null; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment