Skip to content

Instantly share code, notes, and snippets.

@nozma
Last active April 9, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nozma/f5a5f96060448ebb19bb584d5071a02d to your computer and use it in GitHub Desktop.
Save nozma/f5a5f96060448ebb19bb584d5071a02d to your computer and use it in GitHub Desktop.
Swift Example
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Swift Example",
"version": "0.3.2",
"provenance": [],
"collapsed_sections": [],
"include_colab_link": true
},
"kernelspec": {
"name": "swift",
"display_name": "Swift"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/nozma/f5a5f96060448ebb19bb584d5071a02d/swift-example.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"metadata": {
"id": "jlOmdp31TvKK",
"colab_type": "code",
"outputId": "f490e3ed-5427-4311-a7c0-41cd5f3f7b2b",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
}
},
"cell_type": "code",
"source": [
"var str = \"hello\"\n",
"str += \" world\"\n",
"print(str)"
],
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
"text": [
"hello world\r\n"
],
"name": "stdout"
}
]
},
{
"metadata": {
"id": "jPYuyeZSclfH",
"colab_type": "code",
"colab": {}
},
"cell_type": "code",
"source": [
""
],
"execution_count": 0,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment