[K] beginner - map

Hello,

I hope you are having a nice day.

I’m learning some K because it’s looks fun and different. I have some experience in C and clojure.

Here is the problem I’m facing: say I have data (lists) and I would like to consume them by a function f. If f is monadic, it’s simply f’d. How would do if f is diadic, triadic and so on?

in clojure, that would be:

(map f l1 l2 … ln)

Thank you,

f’d
f’[a;b]  also  a f’b

f’[a;b;c]

Thanks a lot.

Le dimanche 11 janvier 2015 21:22:38 UTC+1, Attila a écrit :

f’d
f’[a;b]  also  a f’b

f’[a;b;c]

Its very new indeed. I like that a lot. f’ is a function. As in flatten: {,//x}

Thanks again for this enlightenment.

Le dimanche 11 janvier 2015 21:22:38 UTC+1, Attila a écrit :

f’d
f’[a;b]  also  a f’b

f’[a;b;c]