about summary refs log tree commit diff stats
path: root/065duplex_list.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-31 22:25:24 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-31 22:25:24 -0700
commit53aad02db221ed276aec90624dd5e042d4e93a3e (patch)
tree475804181e532aa2e8d4fc416f3bff5ad251b261 /065duplex_list.mu
parentbcef326000b4c7d59ed1285569ef44d33673059a (diff)
downloadmu-53aad02db221ed276aec90624dd5e042d4e93a3e.tar.gz
2118 - start on undo deletions
Diffstat (limited to '065duplex_list.mu')
-rw-r--r--065duplex_list.mu13
1 files changed, 13 insertions, 0 deletions
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