Skip to Content
Learning Functional Programming in Go
book

Learning Functional Programming in Go

by Lex Sheehan
November 2017
Intermediate to advanced
670 pages
17h 35m
English
Packt Publishing
Content preview from Learning Functional Programming in Go

Order matters

Remember the statement: "If Jenny were sitting at her desk, then she'd be at home?"

Its converse would be, "If Jenny were at home then she'd be sitting at her desk." The converse is created by swapping the hypothesis and conclusion. How does the converse change the logic of the sentence? (Could "Jenny be at home, but not at her desk?") The same words in a different order can change the resulting truth value.

Similarly, the inverse of a conditional can also change the logic. For example, consider the negative form of "If Jenny were sitting at her desk, then she'd be at home," which is "If Jenny were not sitting at her desk, then she would not be at home." (Could Jenny be at home, but not at her desk?)

See how we can use truth ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781787281394Supplemental Content