Skip to content

Using new fields created by put and splitax (Miller 6) #651

Discussion options

You must be logged in to vote

Miller 6 features the splita and splitax conversion built-in functions. The following

put '$property = splitax($1, "_vs_")'

magically creates two new fields property.1 and property.2 for an input string like reflectance_1_vs_albedo for example
(see also https://johnkerl.org/miller6/reference-dsl-builtin-functions/#splitax).

Going further, however, like

put '$property = splitax($1, "_vs_")' then put '$new = ${property.1}'

does not create the new field. Should I not expect it to work like that?

First and best, read the developer's comments below! Then, the solution I have found, is to either split the calls via a | or pre-create the new.1 and new.2 fields, since fields will be assigned th…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@NikosAlexandris
Comment options

@johnkerl
Comment options

@johnkerl
Comment options

@NikosAlexandris
Comment options

Comment options

You must be logged in to vote
7 replies
@NikosAlexandris
Comment options

@johnkerl
Comment options

@NikosAlexandris
Comment options

@NikosAlexandris
Comment options

@johnkerl
Comment options

Answer selected by NikosAlexandris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
go-port Things which will be addressed in the Go port AKA Miller 6
3 participants