Skip to content

Commit

Permalink
Updated Run-Length Encoding to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyTheDev committed Oct 31, 2018
1 parent ace62f8 commit 1e8e231
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Run-Length Encoding/RLE.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
//: Playground - noun: a place where people can play

// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

import Foundation

let originalString = "aaaaabbbcdeeeeeeef"
Expand Down Expand Up @@ -64,7 +59,7 @@ func testBufferWithoutSpans() -> Bool {
// data ends up being longer.
var bytes: [UInt8] = []
for i in 0..<1024 {
bytes.append(UInt8(i%256))
bytes.append(UInt8(i % 256))
}
return encodeAndDecode(bytes)
}
Expand Down

0 comments on commit 1e8e231

Please sign in to comment.