# 248a880f5daeea1799e1fc53b15faa0699e0c93d8895c5fb0a831101b477ab71 Elan 1.6.4 guest default_profile valid

function liveNeighbours(cells as List<of Boolean>, c as Int) returns Int
  let neighbours be neighbourCells(c)
  let live be neighbours.filter(lambda i as Int => cells[i])
  return live.length()
end function

function neighbourCells(c as Int) returns List<of Int>
  return [0]
end function
