{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftBond/Bond/issues/207","labels_url":"https://api.github.com/repos/SwiftBond/Bond/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/SwiftBond/Bond/issues/207/comments","events_url":"https://api.github.com/repos/SwiftBond/Bond/issues/207/events","html_url":"https://github.com/SwiftBond/Bond/issues/207","id":118798626,"number":207,"title":"Array filter by field","user":{"login":"Evgeniy-Odesskiy","id":8857511,"avatar_url":"https://avatars.githubusercontent.com/u/8857511?v=3","gravatar_id":"","url":"https://api.github.com/users/Evgeniy-Odesskiy","html_url":"https://github.com/Evgeniy-Odesskiy","followers_url":"https://api.github.com/users/Evgeniy-Odesskiy/followers","following_url":"https://api.github.com/users/Evgeniy-Odesskiy/following{/other_user}","gists_url":"https://api.github.com/users/Evgeniy-Odesskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Evgeniy-Odesskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evgeniy-Odesskiy/subscriptions","organizations_url":"https://api.github.com/users/Evgeniy-Odesskiy/orgs","repos_url":"https://api.github.com/users/Evgeniy-Odesskiy/repos","events_url":"https://api.github.com/users/Evgeniy-Odesskiy/events{/privacy}","received_events_url":"https://api.github.com/users/Evgeniy-Odesskiy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T09:53:22Z","updated_at":"2015-12-08T14:11:18Z","closed_at":null,"body":"I have:\r\n \r\n```swift\r\nclass Bird: NSObject {\r\n\tinit(flyable: Bool ) {\r\n\t\tcanFly = Dynamic(flyable)\r\n\t\tsuper.init()\r\n\t}\r\n\tvar canFly: Dynamic<Bool>\r\n}\r\n```\r\n\r\nand I have an array of birds\r\n\r\n```swift\r\nvar birds = DinamicArray([Bird(true), Bird(true), Bird(true)]).\r\n```\r\n\r\nI want get not flyable birds filtered array which automatically update when birds entities canFly modifying.\r\n\r\nSomething like:\r\n\r\n```swift\r\npublic func filterDyn(f: T -> Dynamic<Bool>) -> DynamicArray<T>\r\nvar notFlyableBirds = birds.filterDyn({$0.canFly.map({ $0 == false })})\r\n```\r\n\r\nI wrote this feature in fork, but I want use Bond without modifying.\r\nhttps://github.com/Evgeniy-Odesskiy/Bond/blob/master/Bond/Bond%2BArrays.swift\r\nCan I achive this behavior with new Bondv4?"},"comment":{"url":"https://api.github.com/repos/SwiftBond/Bond/issues/comments/162891751","html_url":"https://github.com/SwiftBond/Bond/issues/207#issuecomment-162891751","issue_url":"https://api.github.com/repos/SwiftBond/Bond/issues/207","id":162891751,"user":{"login":"Evgeniy-Odesskiy","id":8857511,"avatar_url":"https://avatars.githubusercontent.com/u/8857511?v=3","gravatar_id":"","url":"https://api.github.com/users/Evgeniy-Odesskiy","html_url":"https://github.com/Evgeniy-Odesskiy","followers_url":"https://api.github.com/users/Evgeniy-Odesskiy/followers","following_url":"https://api.github.com/users/Evgeniy-Odesskiy/following{/other_user}","gists_url":"https://api.github.com/users/Evgeniy-Odesskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/Evgeniy-Odesskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evgeniy-Odesskiy/subscriptions","organizations_url":"https://api.github.com/users/Evgeniy-Odesskiy/orgs","repos_url":"https://api.github.com/users/Evgeniy-Odesskiy/repos","events_url":"https://api.github.com/users/Evgeniy-Odesskiy/events{/privacy}","received_events_url":"https://api.github.com/users/Evgeniy-Odesskiy/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T14:11:18Z","updated_at":"2015-12-08T14:11:18Z","body":"Thank you for response.\r\nThis approach works great!\r\nBut my code is reasonable complicated because I need abilities bind to canFly property and filter array by this property. How can I achieve this?"}}