Some C++ code

for(int i=0; i<10; i++){
    printf("%d", i);
}

int foo(int bar){
    return bar + 1;
}

Some Ruby Code

foo.each do |x,y|
    x.collect { |z| "#{z} foo" }
end