Does Haskell have similar syntactic sugar to Python List Slices?
For instance in Python:
x = [\'a\',\'b\',\'c\',\'d\'] x[1:3]
give
No syntactic sugar. In cases where it's needed, you can just take and drop.
take
drop
take 2 $ drop 1 $ "abcd" -- gives "bc"