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
    
  
  
    
  | // User defined type | |
| // Restricted to finite set of related or like values | |
| // Safe and clean | |
| // Compile time check | |
| // Expressing algorithms naturally | 
  
    
      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 WITH NO NAME | |
| // SPECIAL CASES OF CLOSURE | |
| //let sum = { (a: Int, b: Int) -> Int in | |
| // return a + b | |
| //} | |
| //let result = sum(4, 2) | 
  
    
      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
    
  
  
    
  | import UIKit | |
| import CoreLocation | |
| class ViewController: UIViewController, CLLocationManagerDelegate { | |
| let locmanager = CLLocationManager() | |
| let locationLabel: UILabel = { | |
| let label = UILabel() | |
| label.textColor = .darkGray | 
  
    
      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
    
  
  
    
  | import UIKit | |
| class ViewController: UIViewController { | |
| var count: Int = 0 { | |
| didSet { | |
| countLabel.text = "\(count)" | |
| } | |
| } | |
  
    
      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
    
  
  
    
  | module.exports = { | |
| entry: "./entry.js", | |
| output: { | |
| path: __dirname, | |
| filename: "bundle.js" | |
| }, | |
| module: { | |
| loaders: [{ | |
| test: /\.css$/, | |
| loader: "style!css" | 
  
    
      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
    
  
  
    
  | import { Router, Route, hashHistory } from 'react-router'; | |
| ReactDOM.render(( | |
| <Router history={hashHistory}> | |
| <Route path="/" component={App}> | |
| </Route> | |
| </Router> | |
| ), document.getElementById('root')); | 
  
    
      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
    
  
  
    
  | 'use strict'; | |
| var express = require('express'); | |
| var app = express(); | |
| app.set('port', process.env.PORT || 3333); | |
| app.get('/', (req, res) => { | |
| res.send('Hello World!'); | |
| }); |