{"id":599,"date":"2021-09-17T15:22:17","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/swift.tecc0.com\/?p=599"},"modified":"2021-09-17T15:22:17","modified_gmt":"1970-01-01T00:00:00","slug":"post-599","status":"publish","type":"post","link":"https:\/\/swift.tecc0.com\/?p=599","title":{"rendered":"Swift\u306e\u30e1\u30bd\u30c3\u30c9\u5b9a\u7fa9\u3067\u5f15\u6570\u306e\u6570\u3092\u6307\u5b9a\u3057\u306a\u3044\u65b9\u6cd5"},"content":{"rendered":"<p><strong>\u30e1\u30bd\u30c3\u30c9(\u95a2\u6570)<\/strong>\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u304d\u306b\u3001<span style=\"color: #ff0000;\">\u3044\u304f\u3064\u5f15\u6570\u3092\u3068\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u5834\u5408<\/span>\u304c\u5b58\u5728\u3059\u308b\u3088\u306d\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u3082Swift\u3060\u3063\u305f\u3089\u30ab\u30f3\u30bf\u30f3\u306b\u66f8\u3051\u308b\u3088\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Swift\u306e\u30e1\u30bd\u30c3\u30c9\u5b9a\u7fa9\u3067\u5f15\u6570\u306e\u6570\u3092\u6307\u5b9a\u3057\u306a\u3044<\/h3>\n<pre class=\"lang:swift decode:true \">func sum(numbers: Int...) -&gt; Int {\r\n    var sum = 0\r\n    \r\n    for num in numbers {\r\n        sum += num\r\n    }\r\n    return sum\r\n}\r\n\r\nprint(sum(numbers: 1,2,3,4,5,6,7,8,9,10)) \/\/ 55<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001 <strong>&#8230;<\/strong> \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5f15\u6570\u306e\u6570\u3092\u81ea\u7531\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3002<\/p>\n<p>\u4eca\u56de\u307f\u305f\u3044\u306b\u3001\u5024\u3092\u5168\u3066\u5408\u8a08\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u4f7f\u3044\u3084\u3059\u3044\u65b9\u6cd5\u3060\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30bd\u30c3\u30c9(\u95a2\u6570)\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u304d\u306b\u3001\u3044\u304f\u3064\u5f15\u6570\u3092\u3068\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u304c\u5b58\u5728\u3059\u308b\u3088\u306d\u3002 \u305d\u3093\u306a\u3068\u304d\u3082Swift\u3060\u3063\u305f\u3089\u30ab\u30f3\u30bf\u30f3\u306b\u66f8\u3051\u308b\u3088\u3002 &nbsp; Swift\u306e\u30e1\u30bd\u30c3\u30c9\u5b9a\u7fa9\u3067\u5f15\u6570\u306e\u6570\u3092\u6307\u5b9a\u3057\u306a\u3044 func sum(nu&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/599"}],"collection":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=599"}],"version-history":[{"count":1,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/599\/revisions"}],"predecessor-version":[{"id":600,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/599\/revisions\/600"}],"wp:attachment":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}