Hello,
New to nim. How do I change a bytes seq to a string efficiently ? I mean, no deep copying of the string. shallowCopy() somehow ?
var list: seq[byte] = @[byte('a'), byte('b'), byte('c')]
s = "as string: " & string(list) # Error: conversion from seq[byte] to string is invalid
Of course string() above is wrong, I just wanted to write something.
Thank you!