Current section
Files
Jump to
Current section
Files
lib/witchcraft/foldable/bitstring.ex
import TypeClass
definst Witchcraft.Foldable, for: BitString do
def right_fold(string, seed, reducer) do
string
|> String.to_charlist()
|> Witchcraft.Foldable.right_fold(seed, reducer)
end
end