Skip to content

Instantly share code, notes, and snippets.

View jlegeny's full-sized avatar

Jozef Legény jlegeny

View GitHub Profile
func addingPercentEncodingForRFC3986() -> String? {
let unreserved = "-._~/?"
var allowed = CharacterSet.alphanumerics
allowed.insert(charactersIn: unreserved)
return self.addingPercentEncoding(withAllowedCharacters: allowed)
}
//
// ViewController.swift
// TableSpring
//
// Created by Jozef Legény on 2020-01-18.
// Copyright © 2020 yozy. All rights reserved.
//
import UIKit
2> class C {
3. var a = 1
4. }
5> var arr1 = [C()]
arr1: [C] = 1 value {
[0] = {
a = 1
}
}
6> var arr2 = arr1