MD5/Implementation: Difference between revisions

Content added Content deleted
Line 808: Line 808:
<lang coffeescript>
<lang coffeescript>
# Array sum helper function.
# Array sum helper function.
sum = (arr, start = 0) ->
sum = (array) ->
arr.reduce (x, y) ->
array.reduce (x, y) -> x + y
x + y
, start


md5 = do ->
md5 = do ->