ryukyu.js

Stuff that ryukyu does:

Sorting functions:

Linked list tools:

  1. var x = new ryukyu_list(5, "node1", "parakeet") => undefined
  2. x => Object {1: linkedListItem, 2: linkedListItem, 3: linkedListItem, 4: linkedListItem, 5: linkedListItem}
  3. x[3] => linkedListItem {value: "parakeet", id: 3, next: 4}
  4. var e = ryukyu_listToArray(1, "node1", "new_arr") => undefined
  5. new_arr => ["parakeet", "parakeet", "parakeet", "parakeet", "parakeet"]
  6. new_arr[2] = "macaw" => "macaw"
  7. new_arr[3] = "conure" => "conure"
  8. var eee = ryukyu_arrayToList(new_arr, "new_list") => undefined
  9. eee => Object {1: linkedListItem, 2: linkedListItem, 3: linkedListItem, 4: linkedListItem, 5: linkedListItem}
  10. eee[3] => linkedListItem {value: "macaw", id: 3, next: 4}
  11. new_list_2 => linkedListItem {value: "parakeet", id: 2, next: 3}
  12. new_list_3 => linkedListItem {value: "macaw", id: 3, next: 4}
  13. new_list_4 => linkedListItem {value: "conure", id: 4, next: 5}
  14. new_list_5 => linkedListItem {value: "parakeet", id: 5, next: null}
  15. var d = ryukyu_listObjectToArray(eee, "new_set") => undefined
  16. d => ["parakeet", "parakeet", "macaw", "conure", "parakeet"]
  17. new_set => ["parakeet", "parakeet", "macaw", "conure", "parakeet"]