PCASTLこわいよ
eat_fun = function(eater,target) { mknode(eater.childset[1],target.childset[1].childset[1],1) rmnode(target.childset[1],1) } a = function() { {} print(0) print(1) print(2) print(3) print(4) } b = function() { {} }
使い方
a() 0 1 2 3 4 b() eat_fun(b,a) a() 1 2 3 4 b() 0 eat_fun(b,a) a() 2 3 4 b() 1 0
関数食べるよ!!
#これでライフゲームとか出来たら楽しいなー。