Skip to content

Commit 9d915e4

Browse files
authored
Merge pull request #90 from reetuparna/26
Fixes #26
2 parents 4e06ea1 + 6888710 commit 9d915e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,17 @@ Generates a sharded string with a fixed length and depth.
630630
631631
funk.Shard("e89d66bdfdd4dd26b682cc77e23a86eb", 2, 2, true) // []string{"e8", "9d", "66", "bdfdd4dd26b682cc77e23a86eb"}
632632
633+
funk.Subset
634+
.............
635+
636+
Returns true if a collection is a subset of another
637+
638+
.. code-block:: go
639+
640+
funk.Subset([]int{1, 2, 4}, []int{1, 2, 3, 4, 5}) // true
641+
funk.Subset([]string{"foo", "bar"},[]string{"foo", "bar", "hello", "bar", "hi"}) //true
642+
643+
633644
Performance
634645
-----------
635646

0 commit comments

Comments
 (0)