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.

append() merge two space separated lists problem

See original GitHub issue

Hi

When I use the append() function to merge two space separated list with comma, it returns three sub-lists rather than two. But if I merge the two lists via @for loop, that works fine. Any idea please?

screen shot 2014-07-04 at 14 14 00

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
lolmauscommented, Jul 4, 2014

To create a new list out of two lists, use join(). It will enforce certain separator type between all items.

To create a list of lists, simply use a comma.

Demo: http://sassmeister.com/gist/ee2b7f15d647d3a97405

0reactions
P233commented, Jul 31, 2014

@chriseppstein Thank you so much, I understand now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Merge two sorted linked lists - GeeksforGeeks
The task is to merge both of the lists (in place) and return the head of the merged list.
Read more >
sass - Creating a comma-separated list of space-separated lists
So i use append() . My problem is that append() breaks the first list, producing ( 1, 2, (3 4) ) .
Read more >
sass:list
Use list.append() instead to add a single value to a list. Only use list.join() to combine two lists together into one. If $separator...
Read more >
Split and Join - Python 3 Notes
On this page: .split(), .join(), and list(). Splitting a Sentence into Words: .split(). Below, mary is a single string. Even though it is...
Read more >
Joining bash arguments into single string with spaces
I believe that this does what you want. It will put all the arguments in one string, separated by spaces, with single quotes...
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