Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Module
Title produced by software
Date of computation
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Feb/28/t1362082591qut85foqyxgtjui.htm/, Retrieved Sun, 24 May 2026 20:30:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=207210, Retrieved Sun, 24 May 2026 20:30:29 +0000
QR Codes:

Original text written by user:please remove the code above. this is my 2nd try.{-# LANGUAGE Arrows,TypeOperators,EmptyDataDecls #-}module MaybeArrow where--import Control.Category hinidg ((.),id)import Control.Arrowdata Thingdata FooThingdata SomeArrow b c--instance Control.Category.Category SomeArrow whereinstance Arrow SomeArrow whereget :: SomeArrow String (Maybe Thing)get = undefinedfoo :: [Thing] - FooThingfoo = undefined-- chainlink :: ... - ((a:ar,br) ~ (ar,b:br))chainlink :: Arrow (~ ) = (a ~ b) - (([a],[b])~ ([a],[b]))chainlink f = proc (a:ar,br) - do b - f - a returnA -)) = (a ~ b) - [a] - (() ~ [b])amap f as = proc x - do (_,bs) ) (arr id) $ replicate (length as) (chainlink f) ) - (as,[]) returnA - reverse bsgetAToZ :: SomeArrow () (Maybe FooThing)getAToZ = amap get [[s]|s arr (fmap foo . sequence)
IsPrivate?No (this computation is public)
User-defined keywordsplease remove the code above. this is my 2nd try.{-# LANGUAGE Arrows,TypeOperators,EmptyDataDecls #-}module MaybeArrow where--import Control.Category hinidg ((.),id)import Control.Arrowdata Thingdata FooThingdata SomeArrow b c--instance Control.Category.Category SomeArrow whereinstance Arrow SomeArrow whereget :: SomeArrow String (Maybe Thing)get = undefinedfoo :: [Thing] - FooThingfoo = undefined-- chainlink :: ... - ((a:ar,br) ~ (ar,b:br))chainlink :: Arrow (~ ) = (a ~ b) - (([a],[b])~ ([a],[b]))chainlink f = proc (a:ar,br) - do b - f - a returnA -)) = (a ~ b) - [a] - (() ~ [b])amap f as = proc x - do (_,bs) ) (arr id) $ replicate (length as) (chainlink f) ) - (as,[]) returnA - reverse bsgetAToZ :: SomeArrow () (Maybe FooThing)getAToZ = amap get [[s]|s arr (fmap foo . sequence)
Estimated Impact43
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [] [awOgTQRTAlSRusET] [1970-01-01 00:00:00] [08150dbc6ad5f23d0a7e4325f62d4f52] [Current]
Feedback Forum

Post a new message
Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):