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

5 lines
117 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# A ⊆ B iff string_subset(A;B)
def stringset_subset(A;B):
reduce (A|keys)[] as $k
(true; . and (B|has($k)));