Friday code drop: Transforming properly between atom, string, codelist and charlist - reply 3

Thank-you!

I wonder if there’s a general style that we can adopt for atom/string predicates. For example, I had to define

split_atom(Atom, SepChars, PadChars, SubAtoms) =>
    split_string(Atom, SepChars, PadChars, SubStrings),
    maplist([S,A]>>atom_string(A,S), SubStrings, SubAtoms).

and json_read_dict/3 has an option value_string_as(atom), etc.