Longest common prefix: Difference between revisions
→JS ES6
m (→JS ES6: Updated primitives and output.) |
(→JS ES6) |
||
Line 1,901:
// allSame :: [a] -> Bool
const allSame = xs =>
// True if xs is empty, or every item in the
// tail of the list is identical to the head.
0 === xs.length || (() => {
const
return
})();
|