ngn/k
19
63
Fork
You've already forked k
17

?[] help #8

Merged
ngn merged 1 commit from meyt4r/k:master into master 2021年09月02日 17:44:34 +02:00
Contributor
Copy link

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?

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?
Owner
Copy link

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.
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
Reference in a new issue
ngn/k
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?