I have a request.
Unrelated to the current pull.
I saw in the chat people mention +: something like a verb and assign operation bundled in one.
v+:3
is similliar to
v:v+3
?
can you explain more about this situation?
what kind of verbs can i use with it?
will it work with functions?
is it worth mentioning somewhere in the help?
?[] help #8
Merged
ngn
merged 1 commit from 2021年09月02日 17:44:34 +02:00
meyt4r/k:master into master
meyt4r
commented 2021年09月02日 06:53:56 +02:00
I have a request.
Unrelated to the current pull.
I saw in the chat people mention `+:` something like a verb and assign operation bundled in one.
v+:3
is similliar to
v:v+3
?
can you explain more about this situation?
what kind of verbs can i use with it?
will it work with functions?
is it worth mentioning somewhere in the help?
meyt4r
added 1 commit 2021年09月02日 06:53:56 +02:00
ngn
commented 2021年09月02日 17:44:14 +02:00
thanks
i'll move the line about ?[] further down, as it's not a special form like cond, return, etc
v+:3
yes, practically like v:v+3 but it can be a bit more efficient by reusing the memory allocated for v
what kind of verbs can i use with it?
all primitive verbs
will it work with functions?
no, not with other kinds of functions. for instance:
v{x+y}:3 /can't do that
f:+; v f+:3 /can't do that either
worth mentioning somewhere in the help?
maybe. idk how to describe that concisely.
thanks
i'll move the line about `?[]` further down, as it's not a special form like cond, return, etc
> v+:3
yes, practically like `v:v+3` but it can be a bit more efficient by reusing the memory allocated for `v`
> what kind of verbs can i use with it?
all primitive verbs
> will it work with functions?
no, not with other kinds of functions. for instance:
v{x+y}:3 /can't do that
f:+; v f+:3 /can't do that either
> worth mentioning somewhere in the help?
maybe. idk how to describe that concisely.
ngn
merged commit 9e57ab126c into master 2021年09月02日 17:44:34 +02:00
ngn
referenced this pull request from a commit 2021年09月02日 17:44:34 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
ngn/k!8
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "meyt4r/k:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?