Slide 66
Slide 66 text
duplicate ͷΠϝʔδʢྫɿແݶετϦʔϜʣ
let stream = [ 0, 1, 2, ... ] // ݱ࣌ͷແݶετϦʔϜ
// ʢݱࡏͱະདྷͷʣແݶετϦʔϜΛཁૉʹ࣋ͭແݶετϦʔϜ
duplicate(stream)
= [ [ 0, 1, 2, ... ], // ݱࡏͷ `stream` Λෳ
[ 1, 2, 3, ... ], // ෳ + shift
[ 2, 3, 4, ... ], // ෳ + shift 2ճ
[ 3, 4, 5, ... ], // ෳ + shift 3ճ
... ]