Created
January 22, 2023 05:26
-
-
Save axman6/6adbe8cb80e13b257ae62eca661ff90e to your computer and use it in GitHub Desktop.
Lens partsOf template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> ("Hello", ("there", ["are","several"]),Left "Strings", "in", "here") | |
& partsOf template %~ (reverse :: [String] -> [String]) | |
("here",("in",["Strings","several"]),Left "are","there","Hello") | |
>>> ("Hello", ("there", ["are","several"]),Left "Strings", "in", "here") | |
& partsOf template %~ (reverse :: String -> String) | |
("erehn",("isgni",["rtS","lareves"]),Left "eraereh","to","lleH") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment