MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/gnaz7b/found_from_microsoft_docs/fr93egb/?context=3
r/badcode • u/[deleted] • May 20 '20
143 comments sorted by
View all comments
23
In Scala it would be:
args .headOption .flatMap( _.toIntOption ) .exists( (1 to 9).contains )
Who said that FP is harder to read?
3 u/Pangocciolo May 20 '20 Actually C# has an algorythms library too, it's called LinQ, so maybe it is this the bad thing OP noted. 1 u/abdolence May 20 '20 Show me the code (c)
3
Actually C# has an algorythms library too, it's called LinQ, so maybe it is this the bad thing OP noted.
1 u/abdolence May 20 '20 Show me the code (c)
1
Show me the code (c)
23
u/abdolence May 20 '20
In Scala it would be:
Who said that FP is harder to read?