You are viewing a single comment's thread. Return to all comments →
I could come up with a shorter one, here is your s function without spaces:
s
s=[1]:map((1:).(++[1]).(zipWith(+)=<<tail))s
which is longer by 5 characters than:
p=[1]:[1:zipWith(+)r t++[1]|r@(_:t)<-p]
Pascal's Triangle
You are viewing a single comment's thread. Return to all comments →
I could come up with a shorter one, here is your
s
function without spaces:which is longer by 5 characters than: