swift-Learning Tool-playground

Source: Internet
Author: User

There are a few tips to learn about swift and share with you today

We write swift programs are generally used in XCDE, just choose the development language not

But the swift program tip in XCDE is too slag.

Today we recommend a learning method---swift learning tool

Playground-This can be found in the new project

Look at its powerful features.

This is basic Swift's use of some simple syntax

Playground-noun:a place where people can playimport cocoavar str = "Hello, Playground" var i = 10func supersqrt (x:int )->int{    var sum = 0 for    var i = 1;i < x;i++    {         sum + = i    }        return Sum}supersqrt ("Hell o ") var number = 10var Array = [String] (), var dict = [int:string] (); array.countarray = [" 1 "," 2 "," 3 "," 4 "," 5 "," 6 "]

Keep looking!


We can get the results straight out of the system without printing.


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

swift-Learning Tool-playground

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.