Skip to content
Advertisement

Tag: kotlin

Filter one list using other list in fastest way?

I have one list of objects of Food with fields name and price. I have other list of objects of Category with fields food_name and its category_name. Now, I want to filter the first list according to the category_name in the second list. How can I do it in fastest way possible? I am tagging few languages because I just

Access-Control-Allow-Origin issue in ktor cors header

I am building a simple REST API using ktor and used cors but when i send a simple get request with no headers data the server works fine but if i want the client to have say key:1 the server doesn`t respond me correctly, it says the problem is so here is my ktor code and my javascript code looks

Advertisement