Stuff that ryukyu does:
Sorting functions:
$ryukyu("bubbleSort", [4, 7, 12, 83, 5])
=> [4, 5, 7, 12, 83]
$ryukyu("insertionSort", [4, -7, 1200, 33, 127])
=> [-7, 4, 33, 127, 1200]
$ryukyu("selectionSort", [10, -7, 1200, 393, 17])
=> [-7, 10, 17, 393, 1200]
$ryukyu("crush", [10, 7, 1200, 93, 17])
=> "10712009317"
Linked list tools:
var x = new ryukyu_list(5, "node1", "parakeet")
=> undefined
x
=> Object {1: linkedListItem, 2: linkedListItem, 3: linkedListItem, 4: linkedListItem, 5: linkedListItem}
x[3]
=> linkedListItem {value: "parakeet", id: 3, next: 4}
var e = ryukyu_listToArray(1, "node1", "new_arr")
=> undefined
new_arr
=> ["parakeet", "parakeet", "parakeet", "parakeet", "parakeet"]
new_arr[2] = "macaw"
=> "macaw"
new_arr[3] = "conure"
=> "conure"
var eee = ryukyu_arrayToList(new_arr, "new_list")
=> undefined
eee
=> Object {1: linkedListItem, 2: linkedListItem, 3: linkedListItem, 4: linkedListItem, 5: linkedListItem}
eee[3]
=> linkedListItem {value: "macaw", id: 3, next: 4}
new_list_2
=> linkedListItem {value: "parakeet", id: 2, next: 3}
new_list_3
=> linkedListItem {value: "macaw", id: 3, next: 4}
new_list_4
=> linkedListItem {value: "conure", id: 4, next: 5}
new_list_5
=> linkedListItem {value: "parakeet", id: 5, next: null}
var d = ryukyu_listObjectToArray(eee, "new_set")
=> undefined
d
=> ["parakeet", "parakeet", "macaw", "conure", "parakeet"]
new_set
=> ["parakeet", "parakeet", "macaw", "conure", "parakeet"]