Greetings,
Learning lots of interesting stuff tonight.
Question, is there a way to make biz and baz a one liner, and de-structure it so we can access their values on the right hand side?
My pseudo code (what I’d like to do but don’t know how):
| #...loaded as l(p) => someFunc((l :> string), (p :> payload))
Here is a bigger picture from some code I found earlier and added the biz next to the baz
https://rescript-lang.org/try?version=v10.1.2&code=C4TwDgpgBGCGIBsD2sAmUC8UDeAoKUAlqgFxQDOwAToQHYDmANLgL64ITAXV32EBmIAArxkaTDFEp0GAHw58kxNIB0xVrlyhIRWsHISA2gGIAjFAA+UYwCZL1gMwBdLeGiUaDA1hP8kSe2MAI1gqF21oMVQIGSgTEIAvAAo4ZTQASkCgwmTUqPTwtyhYWhAjXX17D14DKyiYqBd2Tm5PPkEJJND6MhKQdLJqhkx5cgB3QmAAYwALYqp6BQIrYxU1ukrYA0IRqCSknZJ5DfJMo4r0gFpZACEIBGAVAEk9FWAkAGUeBkUVtZUhvQDFsKLt9gZzoDTlBId96OlftZ-vV0CCELtxpNZlB0XgCMtrIkUlIMrs8tJroCBMISahFATgjliWlUJk5EoopS4dSRCzFGwWEA
Original writer of code:
TomiS