You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sequence.(--^) returns a reversed range, while CCList.(--^) returns a range with the right bound excluded.
See:
CCList.(--^) 05;;
(* val _1 : int list = [0; 1; 2; 3; 4] *)Sequence.(--^) 50|>Sequence.to_list;;
(* val _2 : int list = [5; 4; 3; 2; 1; 0] *)Sequence.(--^) 05|>Sequence.to_list;;
(* val _3 : int list = [] *)
I would suggest deprecating Sequence.(--^), since the CCList behaviour is more useful and the operator looks half-open range (the hat being on the right. I would expect a reversed range to include an arrow of some sorts).
The text was updated successfully, but these errors were encountered:
Sequence.(--^)
returns a reversed range, whileCCList.(--^)
returns a range with the right bound excluded.See:
I would suggest deprecating
Sequence.(--^)
, since the CCList behaviour is more useful and the operator looks half-open range (the hat being on the right. I would expect a reversed range to include an arrow of some sorts).The text was updated successfully, but these errors were encountered: