question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider renaming `to_str(array)` and `to_array(str)` to `str_split` and `array_join` respectively.

See original GitHub issue

to_str(array, delimiter) and to_array(str, delimiter) are, at a glance, consistent with other conversion/constructor functions, but to_array(str, delimiter) is an odd and undisoverable way of naming a string-splitting function, and str_split() would be a better name. On the other hand, to_str(array, delimiter) has a better claim at being similar to other “formatting” functions, but is also distinct in that it converts a collection type into a scalar type, so naming it array_join would not be too bad.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shankarj67commented, May 25, 2020

Sure, I will do it today.

0reactions
1st1commented, May 25, 2020

https://github.com/edgedb/edgedb/tree/master/edb/lib

Basically you need to update signatures there and then fix all tests & docs. If this isn’t done today somebody will pick this up tomorrow as we have a release on Wednesday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First entry from string split - Stack Overflow
I've got a column people$food that has entries like chocolate or apple-orange-strawberry . I want to split people$food by - ...
Read more >
strsplit: Split the Elements of a Character Vector - Rdrr.io
Split the elements of a character vector x into substrings according to the matches to substring split within them. Usage. strsplit(x, split, fixed...
Read more >
MATLAB strsplit - MathWorks United Kingdom
Split a character vector on ' ' and 'ain' , treating multiple delimiters as one. Specify multiple delimiters in a cell array of...
Read more >
Path definition - Forum - bpmn.io
activateTab = function(tab) { var tabId = typeof tab === 'string' ? tab : tab.id; ... else // Adding the second element, need...
Read more >
Functional JavaScript.pdf - WordPress.com
toArray (arguments)); ... reasons to think hard about the adoption of JavaScript. ... var str = dispatch(invoker('toString', Array.prototype.toString),.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found