Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looking at the example given of how lovely obj-c is:

   filteredArray = [allRecords filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"someField == %d", someFieldFilterValue]];
Makes me wonder if the author has ever seen languages that do this like so:

   let filteredArray = Seq.filter (fun f -> f = "foo") allRecords


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: