From bd90c2627606c46b074c83bade42f1781d0873ad Mon Sep 17 00:00:00 2001 From: Pagwin Date: Sun, 25 May 2025 16:45:39 -0400 Subject: [PATCH] oop, forgot to use the abstraction I made --- posts/common_proc_patterns.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/posts/common_proc_patterns.md b/posts/common_proc_patterns.md index 26ceed7..b19a094 100644 --- a/posts/common_proc_patterns.md +++ b/posts/common_proc_patterns.md @@ -99,11 +99,9 @@ Whelp, I guess we gotta go through each element in the list and find the one wit ``` FOREACH personAttribute <- somePerson { - "reminder: labeled values are just 2 element lists so we can get the" - "first value of that list with a normal list index" IF LabelName(personAttribute) = "age" { "we do whatever we were doing with the value labeled age here" - "accessing it via personAttribute[1]" + "accessing it via LabelValue(personAttribute)" } } ``` @@ -593,9 +591,9 @@ PROC makeLoop(originalIterator) { "the value being appended is the second" item <- self.iter.nextItem(&self.iter) - IF item[0] = "value" { + IF LabelName(item) = "value" { IF NOT self.fillledStorage{ - append(&self.storage, item[1]) + append(&self.storage, LabelValue(item)) } RETURN item }