Comments (3)
i'm not really sure what you're asking here. can you provide sample code or pseudocode of what you're attempting?
from gloss.
I have 2 arrays type Glossy
var locations: [Location] = [Location]()
var filterLocations: [Location] = [Location]()
in a loop a need know if any object inside locations
exist in filterLocations
example:
for loc in locations {
if filterLocations.contains(loc) {
///Here contain
}
}
from gloss.
i see. that's more of a coding question not specific to Gloss so I'm not going to go too in depth.
off the top of my head, without giving it a try - it may be that you just need to implement the Equatable
protocol for your Location
model.
from gloss.
Related Issues (20)
- toJSON() HOT 1
- Ambiguous operator error
- Change to change log? HOT 2
- Operators from unordered precedence groups HOT 1
- Decode json itself HOT 3
- swift package generate-xcodeproj fails HOT 4
- Carthage update fails for macOS (umbrella header 'Gloss.h' not found). Shouldn't Glass MacOS target membership be "public"? HOT 4
- Deprecated method warning in Gloss 2.0.1 HOT 1
- Can't decode 'anonymous' values HOT 3
- Cannot convert value of type 'JSON' to expected argument type 'JSON' (aka Dictionary<String, Any>') HOT 1
- Crash on device, but not on simulator
- Unexpected E0F while looking for matching HOT 3
- Value found for key "exclude_list" but decoding failed HOT 1
- Initializer 'init()' is internal and cannot be referenced from a default argument value HOT 1
- BaseResponse with Arrays and Generics HOT 1
- Update to use Swift 4.2 HOT 3
- using guard while decoding object = Value found for key "topStory" but decoding failed. HOT 3
- swift5 HOT 8
- WatchOS target should be Swift 4 HOT 6
- How to parse json that contains only array HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gloss.