diff --git a/README.rst b/README.rst index 9e0f4b0..3e38ab4 100644 --- a/README.rst +++ b/README.rst @@ -630,6 +630,17 @@ Generates a sharded string with a fixed length and depth. funk.Shard("e89d66bdfdd4dd26b682cc77e23a86eb", 2, 2, true) // []string{"e8", "9d", "66", "bdfdd4dd26b682cc77e23a86eb"} +funk.Subset +............. + +Returns true if a collection is a subset of another + +.. code-block:: go + + funk.Subset([]int{1, 2, 4}, []int{1, 2, 3, 4, 5}) // true + funk.Subset([]string{"foo", "bar"},[]string{"foo", "bar", "hello", "bar", "hi"}) //true + + Performance -----------