|
|
 |
| found 9 articles for 0.303 sec |
  |
Group: balt.jobs · Group Profile · Search for Lift2 in balt.jobs
Author: JobCircle.Com
Date: Feb 29, 2008 05:12
************************************************************** JobCircle.com is a regional job board serving all industries and occupations in the PA, NJ, DE, NY, MD, and DC areas. We offer a regional job board, online learning, and regional job fair events for jobseekers who live in our areas of focus. To Learn More: Job Board: http://www.JobCircle.com?source=ng eLearning
|
| Show full article (7.14Kb) |
Group: alt.jobs · Group Profile · Search for Lift2 in alt.jobs
Author: JobCircle.Com
Date: Feb 29, 2008 05:12
Consider the following example code: data Vector = V Float Float data Matrix = M Vector Vector liftV1 f (V x y) = V (f x) (f y) liftV2 f (V x1 y1) (V x2 y2) = V (f x1 x2) (f y1 y2) liftM1 f (M x y) = M (f x) (f y) liftM2 f (M x1 y1) (M x2 y2) = M (f x1 x2) (f y1 y2) Both pairs of lift functions have almost identical implementations. Can I merge these somehow? I know data
|
| Show full article (7.14Kb) |
|
Group: us.jobs.offered · Group Profile · Search for Lift2 in us.jobs.offered
Author: JobCircle.Com
Date: Feb 29, 2008 05:12
peterv wrote: Hi, I have a couple of questions about tuples. Q1) Is it possible to treat a tuple of N elements in a generic way? So instead of writing functions like lift1 e1, lift2 (e1,e2), lift3 (e1,e2,e3) just one function liftN that works on tuples of any length? The only thing the libraries provide, as far as I can tell, is the fact that tuples are all Functors
|
| Show full article (7.14Kb) |
Group: fa.haskell · Group Profile · Search for Lift2 in fa.haskell
Author: Peter Verswyvelen
Date: Aug 21, 2007 08:08
Hi Peter, 2007/7/12, peterv <bf3@telenet.be>: Q1) Is it possible to treat a tuple of N elements in a generic way? So instead of writing functions like lift1 e1, lift2 (e1,e2), lift3 (e1,e2,e3) just one function liftN that works on tuples of any length? Q2) (Maybe related to Q1) Can I convert a tuple of length N to a heterogeneous list (using "forall" aka existentially quantified
|
| Show full article (1.12Kb) |
|
 |
|
|