Skip to content

Instantly share code, notes, and snippets.

@blakemerryman
Created October 12, 2014 19:23
Show Gist options
  • Save blakemerryman/f52b73e7ebe9daa69b52 to your computer and use it in GitHub Desktop.
Save blakemerryman/f52b73e7ebe9daa69b52 to your computer and use it in GitHub Desktop.

Revisions

  1. blakemerryman created this gist Oct 12, 2014.
    3 changes: 3 additions & 0 deletions String.length
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    public extension String {
    var length : Int { return countElements(self) }
    }