Skip to content

Instantly share code, notes, and snippets.

@peterstuart
Created August 13, 2014 15:45
Show Gist options
  • Select an option

  • Save peterstuart/ce0ab9a631c34b1e4872 to your computer and use it in GitHub Desktop.

Select an option

Save peterstuart/ce0ab9a631c34b1e4872 to your computer and use it in GitHub Desktop.

Revisions

  1. peterstuart created this gist Aug 13, 2014.
    2 changes: 2 additions & 0 deletions MapFilterReduce2.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    let formattedNumbers = numbers.map { NSNumberFormatter.localizedStringFromNumber($0, numberStyle: .DecimalStyle) }
    // [ "10,000", "10,303", "30,913", "50,000", "100,000", "101,039", "1,000,000" ]