Slide 1

Slide 1 text

関数の話 @chikoski

Slide 2

Slide 2 text

function宣言と アロー関数式 GVODUJPOJE WBMVF \ SFUVSOWBMVF ^ DPOTUJE WBMVF \ SFUVSOWBMVF ^ DPOTUJEWBMVFWBMVF

Slide 3

Slide 3 text

関数適用 DPOTUBEE B C BC BEE BEEӕ Ӽ㊉⇹ BEE BEEӕ Ӽ㊉⇹ BEE BEE BEE BEEӕ Ӓ Ӽ㊉⇹ӁѬ ᒉӳӶӉ ӼBEEӼ㊉⇹

Slide 4

Slide 4 text

パイプライン演算子 DPOTUEPVCMFOO DPOTUBEE0OFOO DPOTUNPE B C BC DPOTUWBMVF NPE BEE0OF EPVCMF WBMVF]EPVCMF ]BEE0OF ] ONPE O https://github.com/tc39/proposal-pipeline-operator

Slide 5

Slide 5 text

関数適用は遅い DPOTUWBMVF NPE BEE0OF EPVCMF DPOTUWBMVF

Slide 6

Slide 6 text

末尾呼び出し GVODUJPOBEE B C \ SFUVSOBC ^ GVODUJPOBEE0OF B \ SFUVSOBEE B ^ BEE0OF

Slide 7

Slide 7 text

末尾呼び出し GVODUJPOBEE B C \ DPOTUDBC SFUVSOD ^ GVODUJPOBEE0OF B \ DPOTUCBEE B SFUVSOC ^ BEE0OF

Slide 8

Slide 8 text

ؔ਺ɿखଓ͖ͷྻʹ໊લΛ͚ͭͨ΋ͷ GVODUJPOQPXFS B \ GPS MFUJJBB \ BBB ^ SFUVSOB ^

Slide 9

Slide 9 text

関数はオブジェクト GVODUJPODSFBUF*E \ SFUVSOGVODUJPO WBMVF \ SFUVSOWBMVF
 ^ ^ DPOTUDSFBUF*E WBMVFWBMVF

Slide 10

Slide 10 text

クロージャ GVODUJPOBEE4PNF WBMVF \ SFUVSOGVODUJPO B \ SFUVSOBWBMVF ^ ^ DPOTUBEE4PNF WBMVFBBWBMVF DPOTUBEEBEE4PNF BEE

Slide 11

Slide 11 text

部分適用 DPOTUBEE B C BC DPOTUBEE4PNFBCBEE B C DPOTUBEEBEE4PNF BEE C ӒҮҰ㕉ᡔҶӑҷӵ ᐠᡔӘक㋚௻ӕ㕉ᡔҶ㊉⇹ҿӶӐҮӵӒӬ൐Ӷӵ BEE

Slide 12

Slide 12 text

部分適用の利用例 DPOTUEPN UBH BUUST\^ \ DPOTUFM EPDVNFOUDSFBUF&MFNFOU UBH GPS DPOTULFZJOBUUST \ FMTFU"UUSJCVUF LFZ BUUST ^ SFUVSOFM ^

Slide 13

Slide 13 text

部分適用の利用例 DPOTUEJW BUUST\^ EPN EJW BUUST DPOTUBVEJP BUUST\^ EPN BVEJP BUUST DPOTUGJMF BUUST\^ \ BUUSTUZQFGJMF SFUVSOEPN JOQVU BUUST ^

Slide 14

Slide 14 text

ロジックの
 パラメータ化 DPOTUGJOE&WFO/VNCFSTMJTU\ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE&WFO/VNCFST MJTU" < >

Slide 15

Slide 15 text

ロジックの
 パラメータ化 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE JJ < >

Slide 16

Slide 16 text

部分適用 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTU'JOEFSGMJTUGJOE G MJTU DPOTUG'JOEFS JJ GJOE MJTU JJ

Slide 17

Slide 17 text

画面に描かれるキャラ DMBTT&OFNZ\ DPOTUSVDUPS QPTJUJPO DPMMJEFS SFOEFSFS \ UIJTQPTJUJPOQPTJUJPO UIJTDPMMJEFSDPMMJEFS UIJTSFOEFSFSSFOEFSFS ^ ^

Slide 18

Slide 18 text

Renderer & Collider DPOTUSFOEFSFS'BDUPSZ J DY Q DYESBX*NBHF QY QZ J DPOTUDJSDMF$PMMJEFS S Q Q EJTU Q Q S DPOTUSSFOEFSFS'BDUPSZ JNH DPOTUDDJSDMF$PMMJEFS DPOTUJOTUBODF'BDUPSZ LMBTTQOFXLMBTT Q S D DPOTUFOFNZ'BDUPSZJOTUBODF'BDUPSZ &OFNZ DPOTUFFOFNZ'BDUPSZ OFX1PTJUJPO