Skip to content

Conversation

@amalloy
Copy link

@amalloy amalloy commented Jan 29, 2026

It talks about using if/then/else as a function argument, but the code snippet just returns it from a function, the same as you could in any language.

I've changed it to use putStrLn instead of returning a String.

It talks about using if/then/else as an function argument, but the code snippet just returns it from a function, the same as you could in any language.
@Bodigrim
Copy link
Collaborator

While at it, could we also mention that Haskell if... then... else... is what other languages like C call "ternary conditional operator"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants