tracker issue : CF-3710336

select a category, or use search below
(searches all categories and all time range)
Title:

struct.filter() missing

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 02/19/2014

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: PublicBeta /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 0

It looks like all struct functions have had their methods implemented except for structFilter().

Repro:
<cfscript>
// structFilter.cfm

base = {a="b", c="d", e="f"};

filtered = structFilter(base, function(k,v){
	return k == "a" || v =="f";
});
writeDump([base,filtered]);

try {
	filtered = base.filter(function(k,v){
		return k == "c" || v =="d";
	});
	writeDump([base,filtered]);
}catch (any e){
	writeDump([e.type,e.message,e.detail]);
}
</cfscript>

Good work on the rest of them though!

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3710336

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

I can confirm this is fixed. Thanks. -- Adam
Comment by External U.
13447 | April 30, 2014 07:24:55 AM GMT