Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib.path.hasPrefix: init #237610

Merged
merged 2 commits into from
Jun 21, 2023
Merged

lib.path.hasPrefix: init #237610

merged 2 commits into from
Jun 21, 2023

Commits on Apr 5, 2023

  1. lib.path.append: Add a law

    With removePrefix introduced in a future commit this law can then be
    used to derive
    
            removePrefix p (append p s) == subpath.normalise s
            => (wrap with append)
            append p (removePrefix p (append p s)) == append p (subpath.normalise s)
            => (append is not influenced by subpath normalisation)
            append p (removePrefix p (append p s)) == append p s
            => (substitute q = append p s)
            append p (removePrefix p q) == q
    
    Not included in the docs because it's not that important, just shows
    that the first statement is more general than the second one (because
    this derivation doesn't work the other way)
    infinisil committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    866f75e View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. lib.path.hasPrefix: init

    infinisil committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    592213a View commit details
    Browse the repository at this point in the history