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

range.pdf

 range.pdf

Tomoki Ota

August 30, 2024
Tweet

More Decks by Tomoki Ota

Other Decks in Programming

Transcript

  1. 27 rangeͷධՁ(νϟωϧ) range͸chΛධՁͯ͠ɺҰ࣌ม਺ʹίϐʔ͠ɺ ͦͷνϟωϧͷཁૉʹରͯ͠ɺ൓෮ॲཧΛߦ͏ɻ ch = ch2ʹؔΘΒͣɺrange͸ch2Ͱ͸ͳ͘ ch1ʹରͯ͠ɺ൓෮ॲཧΛଓ͚Δɻ ch =

    ch2͸ɺchʹ2ͭ໨ͷνϟωϧΛ୅ೖ͍ͯ͠ΔͷͰɺ ͜ͷίʔυͷޙͰclose(ch)Λݺͼग़͢ͱɺ1ͭ໨Ͱ͸ͳ͘ɺ 2ͭ໨ͷνϟωϧ͕Ϋϩʔζ͞ΕΔɻ