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
{{ message }}
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
Since a string is an array of characters, it would helpful to provide the asEnumerable() extension method for strings as well. This method would create an array of characters via the following:
After which it becomes necessary to seamlessly convert back to a string. This could be accomplished by overriding the toString() method of the array that is created when asEnumerable() is called.
Since a string is an array of characters, it would helpful to provide the
asEnumerable()
extension method for strings as well. This method would create an array of characters via the following:You could then have access to any of the asEnumerable functions (any, count, select, where.. etc).
After which it becomes necessary to seamlessly convert back to a string. This could be accomplished by overriding the
toString()
method of the array that is created whenasEnumerable()
is called.This would allow syntax like
str.asEnumerable().dropLast(3).toString()
😄The text was updated successfully, but these errors were encountered: