# 1cb4c5cc8999467bafbdd612b713193a4878c975bdf191ad5383b10791a90e34 Elan 1.6.1 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
