Hello i want to know if it is possible to provide a parameter to a method at a specific position for further using point-free-notation
:
readData::Text->[Int]
readData =catMaybes . maybeValues where
maybeValues=mvalues.split.filterText
filterText::Text->[Char]->Text
filterText tx chars=Data.Text.filter (\x -> not (x `elem` chars)) tx
How can i provide to filterText
only the 2
-nd parameter? like this:
filterText "astr"
where astr
is the [Char]
argument (second position).
Generally speaking when having a method mymethod par1 par2 par3
can i use it :
mymethod par2
and somehow to bind the second argument not the first.