J
Joel VanderWerf
Does anyone else think it would be nice to be able to pack/unpack
booleans? Maybe like this...
[[true, false, true]].pack("y3") # ==> "\005"
I just chose 'y' because it's not used (as are [jokrt]), and it suggests
"yes", a boolean answer.
booleans? Maybe like this...
[[true, false, true]].pack("y3") # ==> "\005"
I just chose 'y' because it's not used (as are [jokrt]), and it suggests
"yes", a boolean answer.