We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does Standard library need to implement
all∘ : ... → All P (map f xs) ←→ All (P ∘ f) xs
? (is it somehow by All.map ?)
The text was updated successfully, but these errors were encountered:
Isn't that already in Data.List.All.Properties ?
map-All : ∀ {a b p} {A : Set a} {B : Set b} {P : B → Set p} {f : A → B} {xs} → All P (List.map f xs) → All (P ∘ f) xs map-All {xs = []} [] = [] map-All {xs = _ ∷ _} (p ∷ ps) = p ∷ map-All ps
Sorry, something went wrong.
On Sun, 2014-03-02 at 07:41 -0800, Andreas Abel wrote:
Isn't that already in Data.List.All.Properties ? map-All : ∀ {a b p} {A : Set a} {B : Set b} {P : B → Set p} {f : A → B} {xs} → All P (List.map f xs) → All (P ∘ f) xs map-All {xs = []} [] = [] map-All {xs = _ ∷ _} (p ∷ ps) = p ∷ map-All ps — Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub.
Yes, map-All and All-map do this.
Thank you.
Sergei
No branches or pull requests
Does Standard library need to implement
?
(is it somehow by All.map ?)
The text was updated successfully, but these errors were encountered: