Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [key]+=val



On Sep 26, 10:32am, Peter Stephenson wrote:
}
} +  local -A keyvalarray
} +  keyvalarray=([1]=who [2]=anyway [1]+=is [1]+=that [1]+=mysterious [1]+=man)
} +  print -rl -- ${(kv)keyvalarray}
} +0:Append to element of associative array on creation
} +>1
} +>whoisthatmysteriousman
} +>2
} +>anyway
} +
} +  local -A keyvalhash
} +  keyvalhash=([one]=hows [one]+=your [one]+=father [one]+=today)
} +  print -rl -- ${(kv)keyvalhash}
} +0:Append to element of associative array on creation
} +>one
} +>howsyourfathertoday

Did you intend for both of those tests to use associative arrays?



Messages sorted by: Reverse Date, Date, Thread, Author