Stream: beginners

Topic: ✔ Documentation for `<-` operator


view this post on Zulip Andy Hamon (Jan 08 2024 at 17:14):

I am slowly trying to grok the Record Builder example.

I'm wondering if there is a simpler explanation of the <- operator anywhere? Its not in the operator desugaring table, which seems odd to me as <- seems like perhaps the must sugarful operator of all.

view this post on Zulip Brendan Hansknecht (Jan 08 2024 at 17:17):

It is desugared directly above the table: https://www.roc-lang.org/tutorial#record-builder

view this post on Zulip Brendan Hansknecht (Jan 08 2024 at 17:18):

probably helps to look at backpassing first: https://www.roc-lang.org/tutorial#backpassing

view this post on Zulip Andy Hamon (Jan 08 2024 at 17:24):

Thank you, the backpassing section is exactly what I was looking for. Not sure how I missed it, I could swear I grepped the tutorial for <-

view this post on Zulip Notification Bot (Jan 08 2024 at 20:17):

Andy Hamon has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC