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

A Category

A category is defined by its objects and the arrows that connect the objects and all compositions.

For every two arrows (f and g), we must define their composition (g o f).

The elements/data of a category theory include:

  • Categories/sets: is a grouping of objects
  • Objects: dots/points/a primitive with no properties no structure
  • Morphisms: (arrows) something that goes between two objects/elements

We write objects with upper case letters (such as A, B, C, and so on). We write arrows in lower case letters (such as f, g, h, and so on).

Arrows have a beginning and an end. Objects in the beginning of the arrow are in the domain; arrows at the end arrows are in the range (also known as codomain).

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