Skip to content
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

[Strings] Support missing :char operations #1885

Open
RickBarretto opened this issue Feb 18, 2025 · 0 comments
Open

[Strings] Support missing :char operations #1885

RickBarretto opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@RickBarretto
Copy link
Collaborator

One example of it is whitespace?:

$> whitespace? " "
=> true

$> whitespace? ' '

══╡ Type Error ╞══════════════════════════════════════════════════════════════════════════════════════════════ <repl> ══
  Erroneous type found

  Cannot call function:
      whitespace? string 

  Wrong argument (at position 1):
      :char

  Expected:
      :string

Functions that would support it:

  • [] prefix? 'a' "Abacate"
  • [] suffix? 'n' "Spain"
  • [] whitespace? ' '
@RickBarretto RickBarretto added the enhancement New feature or request label Feb 18, 2025
@RickBarretto RickBarretto changed the title [Strings] Support operates with :char when possible [Strings] Support missing :char operations Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants