summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/value.h b/src/value.h
index ec0a329a..ff80d8ab 100644
--- a/src/value.h
+++ b/src/value.h
@@ -826,6 +826,18 @@ public:
}
}
+ sequence_t::iterator begin() {
+ assert(is_sequence());
+ return as_sequence_lval().begin();
+ }
+
+ sequence_t::iterator end() {
+ assert(is_sequence());
+ // This special hack is because we never used end() in a context which
+ // needs us to call _dup().
+ return boost::get<sequence_t *>(storage->data)->end();
+ }
+
sequence_t::const_iterator begin() const {
assert(is_sequence());
return as_sequence().begin();