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

Recap Pointfree Vol. 1~3

Recap Pointfree Vol. 1~3

https://gist.github.com/freddi-kit/112b3d13c6660339ddc85bd05ffc3c2b に Vol 3 で話す予定だったものあり

freddi(Yuki Aki)

October 25, 2020
Tweet

More Decks by freddi(Yuki Aki)

Other Decks in Programming

Transcript

  1. ࠓճͷRecapͷ΍Γํ • Pointfree Episode Vol 1 ~ 3 ͷ಺༰Λ΍͍͖ͬͯ·͢ •

    ͨͩ͠ɺ͢΂ͯ΍Δͷ͸͕࣌ؒڐ͢ݶΓ • ొஃऀͷPlaygroundͰRecapͨ͠Γ༡ΜͰ͍͖·͢ • ղઆ͠ͳ͕Β΍ΔͷͰʮ͜͏͍͏ͷͰ͖Δʁʯ
 ͱ͔৭ʑ஡ʑΛೖΕΔͷ͓͢͢ΊͰ͢
  2. pointfree-style • Haskellͷؔ਺ͷॻ͖ํʢελΠϧʣ • … So a 'points-free' definition of

    a function is one which does not explicitly mention the points (values) of the space on which the function acts. • … ͳͷͰɺʮpointfreeʯ ʹΑΔఆٛͱ͸ؔ਺͕࡞༻ ͢ΔۭؒͰɺ஋ʹ͸໌ࣔతʹ͸ݴٴ͠ͳ͍ఆٛΛ͞ ͍ͯ͠·͢ɻ
  3. ࠓ೔࿩͢Pointfree ͷ Episode ʹ͍ͭͯ • Vol 1. Functions • Vol

    2. Side Effects • Vol 3. UIKit Styling with Functions
  4. Vol 2. Side Effects • ʮ෭࡞༻Λ੍ޚ͢ΔʯʹϑΥʔΧεͨ͠ Episode • print ͷྫ

    • NumberFormatter ͷྫ • ԋࢉࢠ >=> ʹΑΔEffectΛ࣋ͬͨؔ਺ͷ߹੒ • ԋࢉࢠ <> ʹΑΔؔ਺ͷ߹੒ɺ<> ͷ ΦʔόʔϥΠυ