How to make IEx print strings instead of charlists

Note that single quotes are for charlists. So the '/' you are passing in is not a string but a charlist. It’s a bit odd that it works at all, but when interfacing with Elixir libraries you should use double quoted string literals.

3 Likes