> foo +arg1 +arg2 ...
And instead we should've interpreted `-` as "ignore this flag for now", so I we could quickly enable/disable the flags as we run the same command via up and enter.
> foo +arg1 +arg2 ...
And instead we should've interpreted `-` as "ignore this flag for now", so I we could quickly enable/disable the flags as we run the same command via up and enter.
(arg1, arg2, ...) -> result
Args are optional. Result's too. So the procedure with no args and result must be just (). And it is!
(arg1, arg2, ...) -> result
Args are optional. Result's too. So the procedure with no args and result must be just (). And it is!
args @ { arg1, arg2, ...}: {}
and
{ arg1, arg2, ...} @ args: {}
despite me giving myself a seeming mandela effect of the second format allowing defaults to apply
args @ { arg1, arg2, ...}: {}
and
{ arg1, arg2, ...} @ args: {}
despite me giving myself a seeming mandela effect of the second format allowing defaults to apply
open -a Instruments profile.traceI
open -a Instruments profile.traceI
> foo -arg1 -/arg2 -arg3 ...
That way to toggle the flag you just add or remove one character.
> foo -arg1 -/arg2 -arg3 ...
That way to toggle the flag you just add or remove one character.
Oh dear how sad, never mind.
Oh dear how sad, never mind.
Compare
let fun_name arg1 arg2 = …
fun arg1 arg2 ->
Not having names is actually fun!
So anonymous function is just like the ordinary one except you use a different keyword and don’t write name!
(and replace = with ->)
Compare
let fun_name arg1 arg2 = …
fun arg1 arg2 ->
Not having names is actually fun!
So anonymous function is just like the ordinary one except you use a different keyword and don’t write name!
(and replace = with ->)
Alex MacArthur shared how to use this feature to write the least readable `reduce` loops ever. 😅
macarthur.me/posts/siblin...
Alex MacArthur shared how to use this feature to write the least readable `reduce` loops ever. 😅
macarthur.me/posts/siblin...
e.g
let fun_name = fun arg1 arg2 -> ...
instead of
let fun_name arg1 arg2 = ...
e.g
let fun_name = fun arg1 arg2 -> ...
instead of
let fun_name arg1 arg2 = ...
My work was among the early mechanistic demonstrations in viruses.
My work was among the early mechanistic demonstrations in viruses.
f = \(..., .arg1 = "foo", .arg2 = "bar") { body }
with names like .arg1 or ARG1 or whatnot to mitigate collisions with names in `...` - which is ugly (and can still clash!)
But what about:
f = \(...) \(arg1 = "foo", arg2 = "bar") { body }
= no way to clash!
f = \(..., .arg1 = "foo", .arg2 = "bar") { body }
with names like .arg1 or ARG1 or whatnot to mitigate collisions with names in `...` - which is ugly (and can still clash!)
But what about:
f = \(...) \(arg1 = "foo", arg2 = "bar") { body }
= no way to clash!
do_smth(arg1, arg2)
do_smth(one, two, three)
do_smth(potato, potato [, arg1, arg2])
це просто дурка
do_smth(arg1, arg2)
do_smth(one, two, three)
do_smth(potato, potato [, arg1, arg2])
це просто дурка
lapply(list, f, arg2, arg3)
purrr::map(list, f, arg2, arg3)
but that pattern has been deprecated in across()
lapply(list, f, arg2, arg3)
purrr::map(list, f, arg2, arg3)
but that pattern has been deprecated in across()
Process.Start("pathtoprogram","arg1 arg2")
Process.Start("pathtoprogram","arg1 arg2")
We're removing simple(arg1) in favor of ComplexFactory.Builder(arg1, arg2).compile().show(arg3)
And never the other way around.
We're removing simple(arg1) in favor of ComplexFactory.Builder(arg1, arg2).compile().show(arg3)
And never the other way around.
def foo(arg1, arg2):
if arg1 == 'special_case':
return foo('other_case', transform(arg2))
else:
...
This works, but then I'll add another argument to foo(), and forget to pass it when I call foo() in the special case.
def foo(arg1, arg2):
if arg1 == 'special_case':
return foo('other_case', transform(arg2))
else:
...
This works, but then I'll add another argument to foo(), and forget to pass it when I call foo() in the special case.
modrinth.com/modpack/pyth...
modrinth.com/modpack/pyth...