Re: Discuss changing the behaviour of append()
- Posted by DerekParnell (admin) Jun 09, 2014
- 4502 views
gimlet said...
You can have append do what you want by calling append as:
append(S[1..1], 2) -- coercing S[1] to a sequence
While more 'elegant', it does have a performance aspect that I was also hoping to avoid.