Packages
doma_witchcraft
1.0.5-doma
Monads and other dark magic (monoids, functors, traversables, &c), forked by doma for maintenance and testing packagesets
Current section
Files
Jump to
Current section
Files
lib/witchcraft/ord/bitstring.ex
import TypeClass
definst Witchcraft.Ord, for: BitString do
def compare(string_a, string_b) do
cond do
string_a == string_b -> :equal
string_a < string_b -> :lesser
true -> :greater
end
end
end