Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Add docs to FragmentationString.recombine/1
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
karol-t-wilk and jonatanklosko authored Aug 12, 2024
1 parent 271a5c6 commit f63c594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/search/fragmentation_scheme.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ defmodule Search.FragmentationScheme do
end
end

@doc """
Recreates the original text from a list of chunks.
"""
def recombine(chunks), do: Enum.join(chunks)

defp split_binary([], ""), do: []
Expand Down

0 comments on commit f63c594

Please sign in to comment.