It was a traditional Halloween food in Ulster, made when the apple harvest came in; the top was often lifted after cooking so butter and sugar could melt over the apple.
Leftover mashed potato is worked into a dough with flour and butter, layered with sliced apple, folded, and cooked on a hot griddle until the outside chars and the apple inside softens. It's a traditional Ulster farmhouse food that market stalls in Donegal still sell warm, split and buttered.