Manera 1:
(str) -> s = 0 for i in [0...str.length] s += str.charCodeAt i s
Manera 2:
(str) -> s = 0 for i in str s += i.charCodeAt 0 s
Gracias
Publicado 01 junio 2014 - 17:24
(str) -> s = 0 for i in [0...str.length] s += str.charCodeAt i s
(str) -> s = 0 for i in str s += i.charCodeAt 0 s
Publicado 01 junio 2014 - 22:39
Publicado 02 junio 2014 - 02:58