-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fromRange function #9
Comments
Great idea! |
@vrom911 Sounds nice! |
SList implements fromRange :: Enum a => a -> a -> SList a
fromRange from to = fromList $ enumFromTo from to |
@BlackCapCoder It's true that At the same time it's possible to implement P.S. The |
Is there any desire to create an analog of any of the other enum "range" functions, i.e. |
@zfnmxt , I think that |
This can be useful as an alternative to
[from .. to]
syntax in lists. So I propose to add function with the following type:Probably this function can be generalized further to work not only with
Int
🤔The text was updated successfully, but these errors were encountered: