« first day (850 days earlier)      last day (685 days later) » 

02:59
woo
I'll add a few things to that
@ngn what does # as filter count into?
@ngn ok, will do
ngn
ngn
@Razetime verb
why does it count as a verb when it takes a monad on the left?
ngn
ngn
@Razetime functions are first-class values in k, so functions can take other functions as args and return them as results
in that case whats the distinguishing factor of adverbs from #
they directly apply the function?
ngn
ngn
@Razetime adverbs are loosely speaking dyadic-or-triadic - they take an operand and one-or-two args
03:04
so a verb will return a function which due to k syntax gets auto applied
ngn
ngn
@Razetime note that f'x (or any other adverb) doesn't require parens around f, but (f)#x does
while an adveb will take upto 2 functions and apply those within its body on the result
ngn
ngn
@Razetime "auto applied"? what do you mean?
like {x} 1 returns 1
wait that isn't right
ngn
ngn
@Razetime generally an adverb is applied like xA y or x yA z (where A is the adverb). it doesn't matter whether x y z are functions or data
@Razetime why?
@ngn (i was assuming f is a literal verb there, like +. if it's just the name f, of course it doesn't need parens)
03:31
oh ok
@ngn the actual scenario is {{x}} 1
afaik
ngn
ngn
03:44
@Razetime {{x}} 1 should return {x}
ah
so yeah what was thinking was wrong
ngn
ngn
it's like (x=>x=>x)(1) in javascript
 
7 hours later…
10:30
@ngn am i doing something wrong here?
10:41
also how do you feel about treating atoms as constant functions - so 1@'"abcd" is 1 1 1 1
1@1 1 1 1 is 1
10:52
@ngn again, nicely done. can't beat it, but nonetheless intrigued by this {y!x y} thing
ngn
ngn
11:26
@chrispsn you need an @ after :'[;2]
@chrispsn makes sense but can't work in k6
ngn
ngn
11:44
@chrispsn instead of (∊):{y!x y};x∊y it could be !/1x\y
but you count (∊):{y!x y}; so !/1x\y is actually longer..
i mean.. к
12:36
@ngn What stops it? A grammar issue?
ngn
ngn
@chrispsn fd@ is write to file, `sym@ has many special meanings..
13:19
Maybe `fd[1]... instead
With `fd as a dyad
ngn
ngn
@chrispsn .. or something with 1: or 0:
 
7 hours later…
ngn
ngn
20:52
@Razetime is there an easy way to export a backup of the wiki?
@chrispsn I guess it would make all "n-times" loops be interpreted as "while", no? if that can be avoided it would also be useful for making constant amends cleaner, i.e. @[v;i;x]
ngn
ngn
@Traws i don't think there's a problem with n-times vs while - numbers can still be numbers but only act as self-returning functions when they are applied. for instance, this is similar to `json - it's a symbol (not function), but when you apply it, it serializes the argument to json.
@Traws good point about @[v;i;x]
21:32
@ngn I see.. I was thinking in terms of "atoms are constant functions" but it's actually "applied atoms are constant functions". I like it, seems consistent and useful.

« first day (850 days earlier)      last day (685 days later) »