{"action":"created","issue":{"url":"https://api.github.com/repos/edgedb/edgedb/issues/316","repository_url":"https://api.github.com/repos/edgedb/edgedb","labels_url":"https://api.github.com/repos/edgedb/edgedb/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/edgedb/edgedb/issues/316/comments","events_url":"https://api.github.com/repos/edgedb/edgedb/issues/316/events","html_url":"https://github.com/edgedb/edgedb/issues/316","id":380925067,"node_id":"MDU6SXNzdWUzODA5MjUwNjc=","number":316,"title":"Standard library functions","user":{"login":"vpetrovykh","id":508466,"node_id":"MDQ6VXNlcjUwODQ2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/508466?v=4","gravatar_id":"","url":"https://api.github.com/users/vpetrovykh","html_url":"https://github.com/vpetrovykh","followers_url":"https://api.github.com/users/vpetrovykh/followers","following_url":"https://api.github.com/users/vpetrovykh/following{/other_user}","gists_url":"https://api.github.com/users/vpetrovykh/gists{/gist_id}","starred_url":"https://api.github.com/users/vpetrovykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpetrovykh/subscriptions","organizations_url":"https://api.github.com/users/vpetrovykh/orgs","repos_url":"https://api.github.com/users/vpetrovykh/repos","events_url":"https://api.github.com/users/vpetrovykh/events{/privacy}","received_events_url":"https://api.github.com/users/vpetrovykh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-14T23:00:32Z","updated_at":"2018-12-06T02:13:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Some functions to consider for standard library:\r\n- `position(sub: str, full:str) -> int32` find a position of a substring in a string\r\n- `position(el: anytype, arr: array<anytype>) -> int32` find a position of an element within an array\r\n- `str_join(sep: str, arr: array<anytype>) -> str` cast each element into <str> and join them, or we can have only the version that handles specifically an `array<str>`\r\n- `str_split(sep: str, full: str) -> array<str>` split a string by non-overlapping instances of separator\r\n\r\nWe might also consider concatenating arrays with a `+` just like we concatenate strings rather than creating a `array_concat` specifically for arrays."},"comment":{"url":"https://api.github.com/repos/edgedb/edgedb/issues/comments/444723130","html_url":"https://github.com/edgedb/edgedb/issues/316#issuecomment-444723130","issue_url":"https://api.github.com/repos/edgedb/edgedb/issues/316","id":444723130,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDcyMzEzMA==","user":{"login":"vpetrovykh","id":508466,"node_id":"MDQ6VXNlcjUwODQ2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/508466?v=4","gravatar_id":"","url":"https://api.github.com/users/vpetrovykh","html_url":"https://github.com/vpetrovykh","followers_url":"https://api.github.com/users/vpetrovykh/followers","following_url":"https://api.github.com/users/vpetrovykh/following{/other_user}","gists_url":"https://api.github.com/users/vpetrovykh/gists{/gist_id}","starred_url":"https://api.github.com/users/vpetrovykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpetrovykh/subscriptions","organizations_url":"https://api.github.com/users/vpetrovykh/orgs","repos_url":"https://api.github.com/users/vpetrovykh/repos","events_url":"https://api.github.com/users/vpetrovykh/events{/privacy}","received_events_url":"https://api.github.com/users/vpetrovykh/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T02:13:15Z","updated_at":"2018-12-06T02:13:15Z","author_association":"CONTRIBUTOR","body":"There's no function for reversing `bytea` or `arrays` in Postgres. How much sense does the function for reversing a string make? It seems to be a good generalization for languages that deal with iterables and sequences generically, but since we don't have these broad concents in EdgeQL, does it really make sense to reverse strings? There's also the trouble with reversing arbitrary unicode."}}
{"actor":{"display_login":"vpetrovykh"}}