V Forum

[ log in ]

How to concatenate 2 const string arrays to form a union array?

kpeters58 Dec 26 03:05
I want to concatenate const 2 string arrays to form a third (union of the first two)

pub const (
HTTP_METHODS = [
'CONNECT',
'DELETE',
'GET',
'HEAD',
'OPTIONS',
'PATCH',

'POST',
'PUT',
'TRACE'
]
WEBDAV_METHODS = [
'CHECKIN',
'CHECKOUT',
'COPY',
'LOCK',
'MKCOL',
'MOVE',
'PROPFIND',
'PROPPATCH',
'REPORT',
'UNCHEC
kpeters58 Dec 26 03:07
Hmm - Alex, do you still have a fixed length here? A few lines are cut off still....
medvednikov Dec 29 16:44

I'll have a look, I thought I had it resolved.

You can do `arr << arr2`

But no way to do it at the const level yet.



Powered by Vorum, open-source blogging/forum software written in V