search for: argname2

Displaying 11 results from an estimated 11 matches for "argname2".

Did you mean: argname
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...GHT_ASSIGN '[' formlist ']' where `formlist` has the syntax of the formals list for a function definition. This would have the following semantics: { *tmp* <- expr # For arguments with no "default" expression, argname1 <- *tmp*[[1]] argname2 <- *tmp*[[2]] ... # For arguments with a default listed argname3 <- with(*tmp*, default3) } The value of the whole thing would therefore be (invisibly) the value of the last item in the assignment. Two examples: [A, B, C] <- expr # assign the first three e...
2023 Mar 11
3
Multiple Assignment built into the R Interpreter?
...> where `formlist` has the syntax of the formals list for a function > definition. This would have the following semantics: > > { > *tmp* <- expr > > # For arguments with no "default" expression, > > argname1 <- *tmp*[[1]] > argname2 <- *tmp*[[2]] > ... > > # For arguments with a default listed > > argname3 <- with(*tmp*, default3) > } > > > The value of the whole thing would therefore be (invisibly) the value of > the last item in the assignment. > > Two examples:...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...ntax of the formals list for a function > definition.? This would have the following semantics: > > ? ? { > ? ? ? *tmp* <- expr > > ? ? ? # For arguments with no "default" expression, > > ? ? ? argname1 <- *tmp*[[1]] > ? ? ? argname2 <- *tmp*[[2]] > ? ? ? ... > > ? ? ? # For arguments with a default listed > > ? ? ? argname3 <- with(*tmp*, default3) > ? ? } > > > The value of the whole thing would therefore be (invisibly) the > value of > the last item i...
2023 Mar 11
2
Multiple Assignment built into the R Interpreter?
...t; > definition. This would have the following semantics: > > > > { > > *tmp* <- expr > > > > # For arguments with no "default" expression, > > > > argname1 <- *tmp*[[1]] > > argname2 <- *tmp*[[2]] > > ... > > > > # For arguments with a default listed > > > > argname3 <- with(*tmp*, default3) > > } > > > > > > The value of the whole thing would therefore be (invisibly) the &...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
On Sat, 11 Mar 2023 11:11:06 -0500 Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > That's clear, but your proposal violates a very basic property of the > language, i.e. that all statements are expressions and have a value. How about reframing this feature request from multiple assignment (which does go contrary to "everything has only one value, even if it's
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
...the following semantics: > > > > > > { > > > *tmp* <- expr > > > > > > # For arguments with no "default" expression, > > > > > > argname1 <- *tmp*[[1]] > > > argname2 <- *tmp*[[2]] > > > ... > > > > > > # For arguments with a default listed > > > > > > argname3 <- with(*tmp*, default3) > > > } > > > > > > > > > The value of the who...
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...ormals list for a function > > definition. This would have the following semantics: > > > > { > > *tmp* <- expr > > > > # For arguments with no "default" expression, > > > > argname1 <- *tmp*[[1]] > > argname2 <- *tmp*[[2]] > > ... > > > > # For arguments with a default listed > > > > argname3 <- with(*tmp*, default3) > > } > > > > > > The value of the whole thing would therefore be (invisibly) the value of > > the la...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...;? ? ? ? ? { > > >? ? ? ? ? ? *tmp* <- expr > > > > > >? ? ? ? ? ? # For arguments with no "default" expression, > > > > > >? ? ? ? ? ? argname1 <- *tmp*[[1]] > > >? ? ? ? ? ? argname2 <- *tmp*[[2]] > > >? ? ? ? ? ? ... > > > > > >? ? ? ? ? ? # For arguments with a default listed > > > > > >? ? ? ? ? ? argname3 <- with(*tmp*, default3) > > >? ? ? ? ? } > &...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...> > *tmp* <- expr > > > > > > > > # For arguments with no "default" expression, > > > > > > > > argname1 <- *tmp*[[1]] > > > > argname2 <- *tmp*[[2]] > > > > ... > > > > > > > > # For arguments with a default listed > > > > > > > > argname3 <- with(*tmp*, default3) > > > &...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...> > > ???????? > > > > > ???????? > >??????????? # For arguments with no "default" > > > expression, > > > ???????? > > > > > ???????? > >??????????? argname1 <- *tmp*[[1]] > > > ???????? > >??????????? argname2 <- *tmp*[[2]] > > > ???????? > >??????????? ... > > > ???????? > > > > > ???????? > >??????????? # For arguments with a default listed > > > ???????? > > > > > ???????? > >??????????? argname3 <- with(*tmp*, default3)...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...???????? > > >>>> ???????? > >??????????? # For arguments with no "default" >>>> expression, >>>> ???????? > > >>>> ???????? > >??????????? argname1 <- *tmp*[[1]] >>>> ???????? > >??????????? argname2 <- *tmp*[[2]] >>>> ???????? > >??????????? ... >>>> ???????? > > >>>> ???????? > >??????????? # For arguments with a default listed >>>> ???????? > > >>>> ???????? > >??????????? argname3 <- with(*t...