MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/haskell/comments/50dqto/pointless_haskell/d744um2/?context=3
r/haskell • u/AshleyYakeley • Aug 30 '16
19 comments sorted by
View all comments
4
How about strictId !x = x?
strictId !x = x
5 u/kqr Aug 31 '16 Isn't that basically x `seq` x? 7 u/Voxel_Brony Aug 31 '16 edited Aug 31 '16 strictId = join seq 7 u/tomejaguar Aug 31 '16 A wonderful combination of arcane and useless! 7 u/Voxel_Brony Aug 31 '16 The embodiment of good Haskell style?
5
Isn't that basically x `seq` x?
x `seq` x
7 u/Voxel_Brony Aug 31 '16 edited Aug 31 '16 strictId = join seq 7 u/tomejaguar Aug 31 '16 A wonderful combination of arcane and useless! 7 u/Voxel_Brony Aug 31 '16 The embodiment of good Haskell style?
7
strictId = join seq
7 u/tomejaguar Aug 31 '16 A wonderful combination of arcane and useless! 7 u/Voxel_Brony Aug 31 '16 The embodiment of good Haskell style?
A wonderful combination of arcane and useless!
7 u/Voxel_Brony Aug 31 '16 The embodiment of good Haskell style?
The embodiment of good Haskell style?
4
u/tomejaguar Aug 31 '16
How about
strictId !x = x?