'use strict'; export const postprocess = [ (world) => ({ ...world, agents: world.agents.map(a => { const {x, y} = a; if ( world.lattice[y][x].type === 'mutable' || world.lattice[y][x].type === 'active' ) { return { ...a, flags: {...a.flags, frozen: true } }; } else { return a; } }), }), ];