Here are its Unicode Scalar Values:
['न', 'म', 'स', '्', 'त', 'े']
(the fourth and sixth values are diacritics)
Start the week with a tour of new features in Xcode 11, designed to help you get from idea to product faster than ever. Discover new ways to edit and organize your source code, new capabilities for designing and previewing user interfaces, and great improvements for debugging and testing. Get an overview for sessions covering developer tools this year.
// swift-tools-version:4.2 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "MyServer", | |
dependencies: [ | |
.package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.6.1")), | |
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsHTTP.git", .upToNextMinor(from: "2.1.1")), |
import Foundation | |
import PlaygroundSupport | |
struct Film: Decodable | |
{ | |
let title: String | |
} | |
struct Films: Decodable | |
{ |
As the Swift on Linux and Swift Package Manager ecosystems mature, many authors of Swift packages want to enable their packages on Linux as well as Apple platforms. The growth of Server-Side Swift makes Linux an important target for many packages.
The first step is to run a package's unit tests on Linux, to verify it behaves as expected.
Because Swift on Linux does not use the Objective-C runtime, the dynamic features that the XCTest
unit testing framework uses to automatically discover testcases are not available.
#!/bin/bash | |
for commit in $(git rev-list --no-merges master) | |
do | |
DATE=$(git show -s --date=iso-local --format=%cd $commit) | |
COUNT=$(git grep NSUnimplemented $commit | wc -l) | |
echo "$commit, $DATE, $COUNT" | |
done |
layout | title |
---|---|
page |
Foundation on Linux |
As a core library which underpins many Swift packages, the Foundation project is a key part of the overall swift.org
ecosystem. Foundation provides a baseline of fundamental types and functionality which is useful to all applications and can be implemented on a broad range of platforms and operating systems.
Since Swift became open source in 2015 the community has worked together to improve the implementation of Foundation on Linux and the project has progessed significantly.
// You have an enumeration: | |
enum Enum { | |
case foo(Int) | |
case bar(String) | |
case qux(Int) | |
} | |
// And you have an array of them: |
import Foundation | |
import Dispatch | |
class AsyncOperation: Foundation.Operation { | |
private let queue = DispatchQueue(label: "async.operation.queue") | |
private var _executing = false | |
private var _finished = false |