This commit is contained in:
Ayaz Hafiz 2022-08-09 15:30:28 -07:00
parent 021cc6e506
commit f20d1ac59a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -3762,12 +3762,12 @@ fn compose_recursive_lambda_set_productive() {
compose = \f, g -> \x -> g (f x)
identity = \x -> x
exclame = \s -> "\(s)!"
exclaim = \s -> "\(s)!"
whisper = \s -> "(\(s))"
main =
res: Str -> Str
res = List.walk [ exclame, whisper ] identity compose
res = List.walk [ exclaim, whisper ] identity compose
res "hello"
"#
),