You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not efficient at all, but here's what I'm using. I'm sure there's a clever way to do this with mapreduce.
The following are done up to dig into nested arrays and find the max or min values in them. From StackOverflow. This is CoffeeScript.
arrmax = (arrs) ->
toplevel = []
i = 0
l = arrs.length
while i < l
toplevel.push Math.max.apply(window, arrs[i])
i++
Math.max.apply window, toplevel
arrmin = (arrs) ->
toplevel = []
i = 0
l = arrs.length
while i < l
toplevel.push Math.min.apply(window, arrs[i])
i++
Math.min.apply window, toplevel
It seems like the library doesn't support these.
The text was updated successfully, but these errors were encountered: