Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Write Swift Code Everyday!!

E1cf27d9fa565b2867d171f21a39759c?s=47 tikidunpon
January 28, 2016

Write Swift Code Everyday!!

Swiftで何か作る勉強会#3のLT資料

E1cf27d9fa565b2867d171f21a39759c?s=128

tikidunpon

January 28, 2016
Tweet

Transcript

  1. 4XJGUͰԿ͔࡞Δษڧձ

  2. ࣗݾ঺հ w ాத޾ҰUXJUUFS!UJLJEVOQPO w BQQ"SSBZJOD w J04ΞϓϦ։ൃ͸೥Ґ w 3BJMT΋গ͠ʂ

  3. 8SJUF$PEF&WFSZEBZ w ຖ೔ߦͰ΋ίʔυΛॻ͘͜ͱ͸େ੾ w ࣸܦ͸༗༻͚ͩͲશ෦ॻ࣌ؒ͘͸ͳ͍ w ຊΛಡΉ͚ͩͩͱϘʔͬͱΈͪΌ͏ w ίʔυΛಈ࡞ͤͯ͞ମͰ΋ཧղ͢Δ

  4. ຖ೔ίʔυΛॻͨ͘Ίʹ w 3&1- w *#.4XJGU4BOECPY w ·ͱΊ

  5. 3&1-ͱ͸ʁ w 3FBEFWBMQSJOUMPPQͷུ w ର࿩తධՁ؀ڥͷ͜ͱ w 3VCZͰ͍͏ॴͷJSC

  6. 3&1-ͷ࢖͍ํ w λʔϛφϧͰTXJGU͚ͩͰىಈ w ͋ͱ͸ίʔυΛॻ͚ͩ͘

  7. 3&1-ͷ࢖͍ํ w λʔϛφϧͰTXJGU͚ͩͰىಈ w ͋ͱ͸ίʔυΛॻ͚ͩ͘ w $USM %Ͱऴྃ

  8. 3&1-ͷ࢖͍ํ tanakakoichi$ swift Welcome to Apple Swift version 2.1.1 (swiftlang-700.1.101.15

    clang-700.1.81). Type :help for assistance. 1> let ary = [1,2,3] ary: [Int] = 3 values { [0] = 1 [1] = 2 [2] = 3 } 2> let total = ary.reduce(0, combine: +) total: Int = 6 3>
  9. *#.4XJGU4BOECPY

  10. *#.4XJGU4BOECPY w αʔόʔ্Ͱ4XJGUͷίʔυΛ࣮ߦ w J1IPOFͰҠಈதʹ΋֬ೝͰ͖Δ w ৔߹ʹΑͬͯ͸1MBZHSPVEΑΓૣ͍ w ίʔυͷ4OBQ4IPUͷγΣΞ͕ग़དྷΔ

  11. ·ͱΊ w खΛಈֶ͔ͯ͠शޮՌΛߴΊΔ w ૉૣ࣮͘ߦͯ͠ࢼ͢ͷʹ͸3&1-࠷ߴʂ w ίʔυͷγΣΞʹ*#.4XJGU4BOECPY w εϚϗͰ΋ίʔσΟϯά͠Α͏

  12. 8FBSF)JSJOH