Created
          April 7, 2018 15:28 
        
      - 
      
- 
        Save doomspork/99f516cf415b99ada51441896f190d26 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | defmodule Example do | |
| def reverse(list, acc \\ []) | |
| def reverse([], acc) do | |
| acc | |
| end | |
| def reverse([head|tail], acc) do | |
| reverse(tail, [head | acc]) | |
| end | |
| end | 
      
      
  Author
  
  
        
      
            doomspork
  
      
      
      commented 
        Apr 7, 2018 
      
    
  
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment