scarpet corountines idea
This commit is contained in:
1 parent
23ed35a398
commit
146573803c
11 files changed
+284
-17
No files matched your search
@@ -3,13 +3,21 @@ package carpet.script.value;
|
||||
import carpet.script.exception.InternalExpressionException;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class AbstractListValue extends Value implements Iterable<Value>
|
||||
{
|
||||
public List<Value> unpack()
|
||||
{
|
||||
List<Value> retVal = Lists.newArrayList(iterator());
|
||||
ArrayList<Value> retVal = Lists.newArrayList();
|
||||
for (Value value : this)
|
||||
{
|
||||
if (value != Value.EOL)
|
||||
{
|
||||
retVal.add(value);
|
||||
}
|
||||
}
|
||||
fatality();
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user