Skip to content

Instantly share code, notes, and snippets.

@xinuc
Created January 20, 2011 09:55
Show Gist options
  • Save xinuc/787673 to your computer and use it in GitHub Desktop.
Save xinuc/787673 to your computer and use it in GitHub Desktop.
generated java
// Generated from array.mirah
public class Array extends java.lang.Object {
private static java.util.List ary;
public static void main(java.lang.String[] argv) {
java.util.Iterator __xform_tmp_1 = null;
java.lang.Object a = null;
Array.ary = java.util.Collections.unmodifiableList(java.util.Arrays.asList(1, 2, 3, 4, 5, 6));
__xform_tmp_1 = Array.ary.iterator();
label1:
while (__xform_tmp_1.hasNext()) {
a = __xform_tmp_1.next();
label2:
{
java.io.PrintStream temp$3 = java.lang.System.out;
temp$3.println(a);
}
}
}
}
@ary = [1,2,3,4,5,6]
@ary.each do |a|
puts a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment