paint-brush
Taking a Closer Look at Lensesby@james_32022
1,136 reads
1,136 reads

Taking a Closer Look at Lenses

by James Bowen10mJune 8th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

So when we first learned about creating our own data types, we went over the idea of record syntax. The idea of record syntax is pretty simple. We want to create objects with named fields. This allows us to avoid the tedium of pattern matching on objects all the time to get any kind of data out of them. Record syntax allows us to create functions that pull an individual field out of an object. Besides retrieving fields from an object, we can also create a modified object. We specify only the records we want to change.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Taking a Closer Look at Lenses
James Bowen HackerNoon profile picture
James Bowen

James Bowen

@james_32022

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite