Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 420 Bytes

dropLength.md

File metadata and controls

19 lines (19 loc) · 420 Bytes
-- dropLength :: [a] -> [b] -> [b]
on dropLength(xs, ys)
    script go
        on |λ|(x, y)
            if 0 < length of x then
                if 0 < length of y then
                    |λ|(tail(x), tail(y))
                else
                    {}
                end if
            else
                y
            end if
        end |λ|
    end script
    go's |λ|(xs, ys)
end dropLength