Skip to content

2.1 - Introduced mutation! 🎉

Latest
Compare
Choose a tag to compare
@KyNorthstar KyNorthstar released this 11 Jun 17:10
595374e

This even introduces some functionality that Swift Strings don't have!

var someString = "Hello, World!"

someString[1...4]           // "ello"
someString[7..<12] = "Mars" // "Hello, Mars!"


someString[orNil: ...4]   = "Howdy"      // "Howdy, Mars!"
someString[orNil: 999...] = "Boundaries" // "Howdy, Mars!"

Licensing

This also changes the license so it's explicitly BH-1-PS.