Hi guys,
how can I map trim command to list members?
say I have list like this:
(set 'lst '("a." "b " "c"))
and I want to trim dot character trying this construct:
(set 'lst2 (map (curry trim {.}) lst))
but it doesn't work, output is:
("." "." ".")
If you try it out by hand, as in
> (curry trim ".")
(lambda ($x) (trim "." $x))
you see that the curried function is not exactly what you want.
You rather need to use a function like
(fn ($x) (trim $x "."))
instead; there's no abbreviation macro for that order of arguments.