When dealing with compose in functional programming does anyone know the meaning of the terms I listed in Description? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When dealing with compose in functional programming does anyone know the meaning of the terms I listed in Description?

fans, Val, prev, fn

13th May 2022, 5:46 PM
steve Purpose
steve  Purpose - avatar
2 Answers
0
These are varibales used as notiations fn and fns are functions So its stating the argument(s) of compose(…fns) should be functions I assume val is value, may also be referred to as args (arguments) Then prev usually refers to previous value. Again not much context in your question but in compose sometimes reduce() is used Hope this helps!
14th May 2022, 12:39 AM
Amaani
Amaani - avatar
0
Ok,going by what your explanation it means they are all functions. My point exactly is which takes (..fns),which takes Val ,which takes prev ..My question is which is at the far right and which is at the far left?. considering the way compose works.
14th May 2022, 1:47 AM
steve Purpose
steve  Purpose - avatar