←
Prototype of the editor I am writing for my Arabic programming language. It is a WebKit WebView with a customized CodeMirror instance. The code listed is an implementation of bubble sort. The equivalent Ruby code would be:
for n in 0..list.length
for m in 0..(list.length - n - 2)
if list[m + 1] > list[m] then
swap list[m], list[m + 1]
end
end
end
Part of my fellowship at Eyebeam exploring Code as Self Expression.
1 year ago. 1 note.