callcc 㨠shift/reset ã«ã¤ãã¦ãããã¨ãã ãæ¸ãã¦ã¿ã¾ãã ç¶ç¶ callcc ã¨ããæä½ã¯ãç¾å¨ããå®è¡çµäºã¾ã§ãç¶ç¶ãã¾ããã¨åãåºãã¾ããä¾é¡ã p [1] + callcc {|k| [2] + k.call([3]) } #=> [1, 3] callcc ã§ã¯ callcc ããªã¿ã¼ã³ãã¦ããå®è¡çµäºããã¾ã§ã®ç¶ç¶ k ãåãåºãã¾ããk.call([3]) ã§ç¶ç¶ãå¼ã°ããã¨ããããªããcallcc ã [3] ãè¿ããç¬éãã«å®è¡ãé£ã³ã¾ããã¤ã¾ããããªæãã p [1] + [3] ãã¨ã¯èªæã§ããã"[2] +" ã®ãããã¯ç¡è¦ããã¾ãã é¨åç¶ç¶ shift ã¨ããæä½ã¯ãç¾å¨ãã reset ã¾ã§ãç¶ç¶ã®ä¸é¨ã ããåãåºãã¾ãããã®ç¶ç¶ã®ä¸é¨ãé¨åç¶ç¶ã¨ããã¾ããä¾é¡ã p [1] + reset { [2] + shift {|k| [3] +
{{#tags}}- {{label}}
{{/tags}}