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.

Can't recursively concat

See original GitHub issue

Is this the expected behaviour for liquid, to not be able to assign recursively?

{% assign yes = "yes" | split: "," %}
    <h5>Does concat work?</h5>
    {% assign yes = yes | concat: yes %}
    {{ yes }}

Prints out [“yes”], as opposed to [“yes”, “yes”]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
harttlecommented, Oct 29, 2017

It’s because not implemented. Now it’s available in 2.0.0 by this commit.

Note: 2.0.0 may not be backward-compatible with 1.x, mainly in whitespace control options.

0reactions
rjbergerudcommented, Oct 29, 2017

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

recursion cannot concatenate 'int' and 'NoneType'
So somehow this code returns a NoneType , which I cannot concatenate with the int to a list . I assume that blsort(L[1:])...
Read more >
Can't understand a recursive definition of concatenation of two ...
I'm reading Rosen's Discrete Mathematics and its applications(6ed), but I can't understand a recursive definition about concatenation of two ...
Read more >
Recursion
A function with no recursive cases is not recursive ! At least one parameter to the function must change through the recursive call....
Read more >
Help with recursive problem returning a concatentation of a ...
Write a recursive function extractStr() that takes an arbitrarily nested list as a parameter and returns a string that consists of the ...
Read more >
Recursive macro call inside concat macro fails to find ... - GitHub
Recursive macro call inside concat macro fails to find macros referred to by $crate #63460 ... A-macros Area: All kinds of macros (custom...
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