|
|
 |
| found 336596 articles for 3.006 sec |
  |
Group: comp.lang.functional · Group Profile · Search for 1 1 2 2 3 3 4 4 5 5 6 6 6 7 8 8 9 9 in comp.lang.functional
Author: Mark T.B. Carroll
Date: May 30, 2007 13:26
...accept different type of lists as input for example: a list of int [1,2,3] or string ["1","2","3"] where each input list...get back ["*","*","^","^"] If it's of any use, in Haskell I'd do: Prelude> concatMap (replicate 2) [1..5] [1,1,2,2,3,3,4,4,5,5] Prelude> concatMap (replicate 2) "hello world" "hheelllloo wwoorrlldd" A simple version of dual would be, dual [] = ...
|
| Show full article (0.75Kb) |
|
 |
|
1 ·
2 ·
3 ·
4 ·
5 ·
6 ·
7 ·
8 ·
9 ·
next |
|
|