Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to "delete" a key from NamedTuple

$
0
0

@xiaodai wrote:

I know tuples are meant to be immutable, but I am interested in a way to create a new named tuple B that is the same as A except that it has :key1 deleted.

I was hoping something like this would work

B = delete(A, :key)

but it doesn’t.

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images