From 53aad02db221ed276aec90624dd5e042d4e93a3e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 31 Aug 2015 22:25:24 -0700 Subject: 2118 - start on undo deletions --- 065duplex_list.mu | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '065duplex_list.mu') diff --git a/065duplex_list.mu b/065duplex_list.mu index 0b0a47c5..e3eafcba 100644 --- a/065duplex_list.mu +++ b/065duplex_list.mu @@ -422,6 +422,19 @@ recipe insert-duplex-range [ reply in ] +recipe last-duplex [ + local-scope + in:address:duplex-list <- next-ingredient + result:address:duplex-list <- copy in + { + next:address:duplex-list <- next-duplex result + break-unless next + result <- copy next + loop + } + reply result +] + # helper for debugging recipe dump-duplex-from [ local-scope -- cgit 1.4.1-2-gfad0