cancel
Showing results for 
Search instead for 
Did you mean: 

Projection issue - lists and function of lists parameters

JP
New Contributor III

Hi,


Basic stuff, but I guess my brain has grown a bit fuzzy lately. I have a function func[parA;parB] that returns a list of dictionaries, as many as parB’s razed lengths. Both parA and parB are lists, with parB itself a function g[parA]. Quick illustration:


parA:(`a`b)

parB is actually g[parA]: (`x1`y1; `x2`y2`z2)


Main "unprocessed" func[parA; g[parA]] should output something like:

`a!`x1

`a!`y1

`b!`x2

`b!`y2

`b!`z2


The internal function processing is OK, but less so for calling it(!): 


func[;]’[`a; g `a] is fine for atom components of parA... but


func[;]’[parA][g’[parA]] yields a length error… What am I doing wrong ?

1 REPLY 1

JP
New Contributor III
Issue was solved by moving [g'[parA]] in the main func body.