# 2a302cf38f04ff4b35c7744f77e83f43c44ba290379b65da513c5c00c608381f Elan 1.7.0 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
