RosettaCodeData/Task/Set/Jq/set-6.jq

5 lines
117 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
# A ⊆ B iff string_subset(A;B)
def stringset_subset(A;B):
reduce (A|keys)[] as $k
(true; . and (B|has($k)));