Add indices(s), improve index(s), rindex(s)

Now these deal with arrays as input and `s` being an array or a scalar.
This commit is contained in:
Nicolas Williams committed 2014-06-08 02:01:44 -05:00
1 parent ef4f3a54fe
commit 1dbe9317bc
6 files changed
+61 -4

No files matched your search

+1
View File
@@ -71,6 +71,7 @@ jv jv_array_set(jv, int, jv);
jv jv_array_append(jv, jv);
jv jv_array_concat(jv, jv);
jv jv_array_slice(jv, int, int);
jv jv_array_indexes(jv, jv);
#define jv_array_foreach(a, i, x) \
for (int jv_len__ = jv_array_length(jv_copy(a)), i=0, jv_j__ = 1; \
jv_j__; jv_j__ = 0) \