You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

FunctionFilters are used in the functions library to specify which data you want to set or get. For example you can use filters to get a subset of a function. FunctionFilters can be quite complex and usually there is an alternative syntax to get the same result easier.

VariableValueFilter

For example if we have a grid f with 2 int arguments and one string component like this:

x\y

0

1

2

0

a

b

c

1

d

e

f

2

g

h

i

We can define a filtered function of this like this

f2 = f.Filter(new VariableValueFilter<int>(x,new[]{1,2}),new VariableValueFilter<int>(y,new[]{1,2}))

f2 look like this

x2\y2

1

2

1

e

f

2

h

i

  • No labels