# f1221973f86217fbbda479b939f40adb8f930a37fad61336f62e676dda721a3f Elan 1.8.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
