Noogλe

search input

Function of the day

  • Returns a string without the specified suffix, if the suffix matches.

    Inputs

    suffix
    Suffix to remove if it matches
    str
    Input string

    Type

    removeSuffix :: String -> String -> String
    

    Examples

    lib.strings.removeSuffix usage example

    removeSuffix "front" "homefront"
    => "home"
    removeSuffix "xxx" "homefront"
    => "homefront"