Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
Prelude> let sin_asin = sin . asin
Prelude> sin_asin 0.5
0.49999999999999994

View file

@ -0,0 +1 @@
(sin . asin) 0.5

View file

@ -0,0 +1 @@
sin . asin $ 0.5

View file

@ -0,0 +1 @@
compose f g x = f (g x)

View file

@ -0,0 +1,4 @@
Prelude> let compose f g x = f (g x)
Prelude> let sin_asin = compose sin asin
Prelude> sin_asin 0.5
0.5

View file

@ -0,0 +1,5 @@
composeList :: [a -> a] -> a -> a
composeList = flip (foldr id)
main :: IO ()
main = print $ composeList [(/ 2), succ, sqrt] 5