Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • What type is value? Commented Nov 24, 2019 at 22:57
  • Value is an array of Article ID’s. I’ve updated the code for clarity. Commented Nov 24, 2019 at 23:05
  • If I'm reading this right, favorites is a [[String]], and you're mapping this into [[Article]], and then assign it back to favorites? (How is that possible? What type is favorites?) I usually try to demonstrate these using Just so I can show the entire flow. What's the input and output types? Commented Nov 25, 2019 at 1:24
  • I meant I'm trying to map favorites: [String] to [Article] in one flatting closure, but not sure if it's possible without a custom operator. Commented Nov 25, 2019 at 2:12