Closed davidchambers closed 5 years ago
Post #622, S.at is not particularly useful. One can replace S.at (n) (xs) with S.chain (S.head) (S.drop (n) (xs)), which is longer but still very clear. Functions that deal with indices have always felt out of place in this library.
S.at
S.at (n) (xs)
S.chain (S.head) (S.drop (n) (xs))
Post #622,
S.at
is not particularly useful. One can replaceS.at (n) (xs)
withS.chain (S.head) (S.drop (n) (xs))
, which is longer but still very clear. Functions that deal with indices have always felt out of place in this library.