# 06a1b99f900e856425e0ad06bb3a196f86a20cc9a0f047e6b7a95cd2850cc499 Elan 1.6.2 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
