Title: Pipe operator only works in specific order · Issue #14 · aiscriptdev/aiscript · GitHub
Open Graph Title: Pipe operator only works in specific order · Issue #14 · aiscriptdev/aiscript
X Title: Pipe operator only works in specific order · Issue #14 · aiscriptdev/aiscript
Description: cannot convert to string, the value is HELLO WORLD. fn to_uppercase(text: str) -> str { return text.to_uppercase(); } fn remove_spaces(text: str) -> str { return text.replace(" ", ""); } fn count_chars(text: str) -> int { return len(text...
Open Graph Description: cannot convert to string, the value is HELLO WORLD. fn to_uppercase(text: str) -> str { return text.to_uppercase(); } fn remove_spaces(text: str) -> str { return text.replace(" ", ""); } fn count_c...
X Description: cannot convert to string, the value is HELLO WORLD. fn to_uppercase(text: str) -> str { return text.to_uppercase(); } fn remove_spaces(text: str) -> str { return text.replace(" ", &...
Opengraph URL: https://github.com/aiscriptdev/aiscript/issues/14
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pipe operator only works in specific order","articleBody":"cannot convert to string, the value is HELLO WORLD.\n```rs\nfn to_uppercase(text: str) -\u003e str {\n return text.to_uppercase();\n}\n\nfn remove_spaces(text: str) -\u003e str {\n return text.replace(\" \", \"\");\n}\n\nfn count_chars(text: str) -\u003e int {\n return len(text);\n}\n\nlet result = \"Hello World\" \n |\u003e to_uppercase // \"HELLO WORLD\"\n |\u003e remove_spaces // \"HELLOWORLD\"\n |\u003e count_chars; // 10\n\nprint(result); // 10\n```\n\nHowever, this works:\n\n```rs\nlet result = \"Hello World\" \n |\u003e remove_spaces // \"HELLOWORLD\"\n |\u003e to_uppercase // \"HELLO WORLD\"\n |\u003e count_chars; // 10\n```","author":{"url":"https://github.com/Folyd","@type":"Person","name":"Folyd"},"datePublished":"2025-03-06T04:24:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/14/aiscript/issues/14"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:96fbf306-02db-4fc8-9a85-61422539f5a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D50:1A2377:1F93942:2B5D1B6:6A609846 |
| html-safe-nonce | d4d680b0434d22f6a8d46e6ee2d2b6984725575b6680e7470a2bc6f17be8b847 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDUwOjFBMjM3NzoxRjkzOTQyOjJCNUQxQjY6NkE2MDk4NDYiLCJ2aXNpdG9yX2lkIjoiNDUzOTQzOTc2OTczNTY5ODUwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f1a3b24de3c42764af7e81040b22600b0b5cd8e49ad83272f326e80d30e2e44 |
| hovercard-subject-tag | issue:2899295637 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aiscriptdev/aiscript/14/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0ab346cae23e5f719485510ff5b3c5e18c0fde81e75b2c5f2c8964721a750a0/aiscriptdev/aiscript/issues/14 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0ab346cae23e5f719485510ff5b3c5e18c0fde81e75b2c5f2c8964721a750a0/aiscriptdev/aiscript/issues/14 |
| og:image:alt | cannot convert to string, the value is HELLO WORLD. fn to_uppercase(text: str) -> str { return text.to_uppercase(); } fn remove_spaces(text: str) -> str { return text.replace(" ", ""); } fn count_c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Folyd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5142d23feb6a650085422edf60d68c93777dfa6c4b0c9151eb464d3e4969f618 |
| turbo-cache-control | no-preview |
| go-import | github.com/aiscriptdev/aiscript git https://github.com/aiscriptdev/aiscript.git |
| octolytics-dimension-user_id | 185588023 |
| octolytics-dimension-user_login | aiscriptdev |
| octolytics-dimension-repository_id | 875138407 |
| octolytics-dimension-repository_nwo | aiscriptdev/aiscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 875138407 |
| octolytics-dimension-repository_network_root_nwo | aiscriptdev/aiscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b2111e158bcd758ab9d0446577ae8f5dd78fcca8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width