paint-brush
Swift Snippet: selectively update object from an optional new valueby@aren.ankit

Swift Snippet: selectively update object from an optional new value

by Ankit Aggarwal1mJanuary 18th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<a href="https://hackernoon.com/tagged/following" target="_blank">Following</a> operator can be used to update object from new optional value.This can be used when we do not want <a href="https://hackernoon.com/tagged/object" target="_blank">object</a> to get updated to nil from new optional value.
featured image - Swift Snippet: selectively update object from an optional new value
Ankit Aggarwal HackerNoon profile picture
Ankit Aggarwal

Ankit Aggarwal

@aren.ankit

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