How to apply Seq map function?
Posted
by netmatrix01
on Stack Overflow
See other posts from Stack Overflow
or by netmatrix01
Published on 2010-06-05T13:11:29Z
Indexed on
2010/06/05
13:12 UTC
Read the original article
Hit count: 114
F#
Hello All,
I been recently playing with F# . I was wondering instead of using a for loop to generate a sequence to element which are multiplied with every other element in the list how can I use a Seq map function or something similar to generate something like below.
So for e.g. I have a list [1..10] I would like to apply a fun which generates a result something like
[(1*1); (1*2);(1*3); (1*4); (1*5)......(2*1);(2*2);(2*3).....(3*1);(3*2)...]
How can i achieve this ?.
Many thanks for all you help.
© Stack Overflow or respective owner