trifork / TriforkSwiftExtensions

Generic Trifork Swift Extensions
MIT License
8 stars 6 forks source link

Extend slicing #50

Closed ghost closed 5 years ago

ghost commented 5 years ago

Slicing can now take nil at parameter.

Can be used if we want a string starting with "foo" to the end. The same is with "to".

If both are nil, nil is returned.

ghost commented 5 years ago

🚀