oop, forgot to use the abstraction I made
This commit is contained in:
parent
07ef4651c2
commit
bd90c26276
1 changed files with 3 additions and 5 deletions
|
@ -99,11 +99,9 @@ Whelp, I guess we gotta go through each element in the list and find the one wit
|
||||||
|
|
||||||
```
|
```
|
||||||
FOREACH personAttribute <- somePerson {
|
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" {
|
IF LabelName(personAttribute) = "age" {
|
||||||
"we do whatever we were doing with the value labeled age here"
|
"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"
|
"the value being appended is the second"
|
||||||
|
|
||||||
item <- self.iter.nextItem(&self.iter)
|
item <- self.iter.nextItem(&self.iter)
|
||||||
IF item[0] = "value" {
|
IF LabelName(item) = "value" {
|
||||||
IF NOT self.fillledStorage{
|
IF NOT self.fillledStorage{
|
||||||
append(&self.storage, item[1])
|
append(&self.storage, LabelValue(item))
|
||||||
}
|
}
|
||||||
RETURN item
|
RETURN item
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue