Longest common prefix: Difference between revisions

Content added Content deleted
Line 1,901:
// allSame :: [a] -> Bool
const allSame = xs =>
// True if xs ishas emptyless than 2 items, or every item in the
// in the tail of the list is identical to the head.
02 ===> xs.length || (() => {
const [h, ...t] = xs;