Wrong CODE takes U to the right BUG 🐞 coding, thoughts & ideas
“Oh, you haven’t heard? Sitting is the new smoking…”
iex> raw = str <> <<0>>
<<104, 101, 197, 130, 197, 130, 111, 0>>
You can see the binary representation of any string with a little hack of joining the string with <<0>> .
defmodule Number.Guards do
defguard is_three_or_five(number) when (number===3) or (number===5)
Let me just say that again, when you find a mountain in your way, that’s the moment you’re ready to learn a way to climb it! It’d be very hard to understand why you would even need a rappelling rope if you have never seen a mountain.
Please make a note that it is not a production grade code. I used list concatenation at end of the list. It is better performed by adding element to the head…