Created
          August 8, 2019 02:15 
        
      - 
      
- 
        Save bannzai/a270d072a655b4166dfd4758a0603dfa to your computer and use it in GitHub Desktop. 
    Type inference
  
        
  
    
      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
    
  
  
    
  | let odd = [1,2,3].filter { $0 % 2 == 1 } | |
| let numbers: [Int] = [1,2,3] | |
| let odd: [Int] = numbers.filter { (number: Int) -> Bool in | |
| return number % 2 == 1 | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment