Mercurial > repo
view paste/paste.5756 @ 489:e8c0b0073a2d
<nortti> run echo "welcome "'$1'" | python -c \"print (lambda s: ''.join([ (s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(raw_input())\"" > /hackenv/bin/WeLcOmE
author | HackBot |
---|---|
date | Sun, 03 Jun 2012 15:53:40 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
2009-06-24.txt:19:07:27: <oerjan> also i have seen so few applicatives that aren't usually extended right on to monads, the only one coming to mind is ZipList (and i recall concluding even those _had_ a monad extension in principle) 2009-06-24.txt:19:08:39: <Gracenotes> ZipList is mah canonical example 2009-06-24.txt:19:28:12: <oerjan> augur: i'm talking about a theoretical Monad instance for ZipList, lambdabot doesn't have it 2009-06-26.txt:05:30:49: <pikhq> > fromZipList $ fmap chr $ (+) <$> (fmap ord ['