Created
          November 5, 2014 21:34 
        
      - 
      
 - 
        
Save LittleHelicase/ba8a2a3db67ac5e448e3 to your computer and use it in GitHub Desktop.  
    // source http://jsbin.com/gavum
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| function listToString(L){ | |
| var cur = L.first(); | |
| var arr = []; | |
| while(cur !== null){ | |
| arr.push(L.retrieve(cur)); | |
| cur = L.next(cur); | |
| } | |
| return arr.join(","); | |
| } | |
| function createListFromArray(L, arr){ | |
| L.create(); | |
| for(var i=arr.length-1; i>=0; i--){ | |
| L.insert(null, arr[i]); | |
| } | |
| } | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript"> | |
| function listToString(L){ | |
| var cur = L.first(); | |
| var arr = []; | |
| while(cur !== null){ | |
| arr.push(L.retrieve(cur)); | |
| cur = L.next(cur); | |
| } | |
| return arr.join(","); | |
| } | |
| function createListFromArray(L, arr){ | |
| L.create(); | |
| for(var i=arr.length-1; i>=0; i--){ | |
| L.insert(null, arr[i]); | |
| } | |
| }</script></body> | |
| </html> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function listToString(L){ | |
| var cur = L.first(); | |
| var arr = []; | |
| while(cur !== null){ | |
| arr.push(L.retrieve(cur)); | |
| cur = L.next(cur); | |
| } | |
| return arr.join(","); | |
| } | |
| function createListFromArray(L, arr){ | |
| L.create(); | |
| for(var i=arr.length-1; i>=0; i--){ | |
| L.insert(null, arr[i]); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment