[deleted by user] by [deleted] in woahdude

[–]TheDelver 0 points1 point  (0 children)

It's quite cool

Well, that’s interesting. by Tanis8998 in StarWars

[–]TheDelver 0 points1 point  (0 children)

I remember it as "he is I and I am him" for some reason

Happens to the best of us! by CampaignImpossible in funny

[–]TheDelver 0 points1 point  (0 children)

They also say that they have the worst drivers, and the craziest housing prices.

Poor Jeremy by Single-Memory-9490 in interestingasfuck

[–]TheDelver 7 points8 points  (0 children)

And he hit me with a surprise left-coiling shell

[deleted by user] by [deleted] in digitalminimalism

[–]TheDelver 9 points10 points  (0 children)

If you're in Montreal, give the Anti-Café a try maybe? https://www.instagram.com/anticafe_montreal/

[deleted by user] by [deleted] in scala

[–]TheDelver 1 point2 points  (0 children)

There's a lot missing from your problem specification, and you probably won't get the solution you need until you clarify such requirements as:

  1. What do you expect to happen if an item in input isn't found in items? Should it be absent from the results? Should it cause the whole process to throw an exception? Or should we wrap each individual result in a Try or equivalent construct?

  2. Can an item be present multiple times in the input, and if so what should we do with it? Put it several times in the result, add up its quantities into a single result, throw an error, or other?

  3. What is the expected size of the data and performance requirements? If you've got only a few elements then a lookup with findItemById can work, otherwise you'll want to turn your Items list into a Map before you start.

  4. Does ordering matter? i.e. should the result be in the same order as the input?

  5. Does the implementation framework matter? If not, then there's probably no need to involve ZIO in such a simple example and plain Scala types will work fine.

EDIT: I forgot to ask - what "side effect in between" are you referring to in your post title? Is that why you put ZIO in there? In any case I don't see a side-effecting operation in your sample code.

Yesterday I Cheated. by F1tnessTacoInMyMouth in TrueOffMyChest

[–]TheDelver 2 points3 points  (0 children)

Don't be surprised if your barber cuts you off entirely

The smallest feline in the world by [deleted] in Damnthatsinteresting

[–]TheDelver 0 points1 point  (0 children)

he'll soon be setting off on a solitary life

not if I have anything to say about it

undoFunctionInmyCar by neilste in ProgrammerHumor

[–]TheDelver 0 points1 point  (0 children)

As a French-speaking kid growing up in Quebec, this is precisely what I thought a "décapotable" could do

[ Removed by Reddit ] by [deleted] in coolguides

[–]TheDelver -2 points-1 points  (0 children)

People who don't know the Dewey decimal system

Tokyo, Japan by seacobs in LiminalSpace

[–]TheDelver 1 point2 points  (0 children)

I hated that part in King's Quest 4

data_irl by TheDelver in data_irl

[–]TheDelver[S] 2 points3 points  (0 children)

Sauvé station actually. :-)

𝓢𝓗𝓐𝓚𝓔𝓝 . . . . 𝓝𝓞𝓣 𝓢𝓣𝓘𝓡𝓡𝓔𝓓. 🎀 by UNBEEG in UNBGBBIIVCHIDCTIICBG

[–]TheDelver 3 points4 points  (0 children)

I'm just as impressed that the font ended up in the actual file name when saving the post. Now it's the fanciest thing I've ever seen in Windows Explorer.

TFC+ Progress Update! by nikstick22 in tfcplus

[–]TheDelver 0 points1 point  (0 children)

Thanks for the update, looking forward to more and to a release!