in is now inside, added in as inverse of has

This commit is contained in:
Santiago Lapresta committed 2014-12-22 22:17:53 +01:00
1 parent b748eae035
commit a3234034b5
2 files changed
+25 -8

No files matched your search

+2 -1
View File
@@ -1111,7 +1111,8 @@ static const char* const jq_builtins[] = {
" | reduce range(0; $max) as $j"
" ([]; . + [reduce range(0;$length) as $i ([]; . + [ $in[$i][$j] ] )] )"
" end;",
"def in(xs): . as $x | xs | contains($x)",
"def in(xs): . as $x | xs | has($x)",
"def inside(xs): . as $x | xs | contains($x)",
};
#undef LIBM_DD