Skip to main content
provided explanations
Source Link
mollmerx
  • 249
  • 1
  • 3

k (6 bytes)

&/>':_

& returns true if both args are true

/ modifies & to apply "over" a list, like a fold in functional languages

> greater than

': modifies > to apply "each-prior", so returns a vector of booleans stating which elements are greater than their predecessor

_ makes it argument lower case

  _"puzZ"
"puzz"
  >':_"puzZ"
1110b
  &/>':_"puzZ"
0b

(0b means boolean false)

q version (13 bytes)

all(>':)lower

q is just syntactic sugar on k. all is defined as &/, and lower is _

k (6 bytes)

&/>':_

q version (13 bytes)

all(>':)lower

k (6 bytes)

&/>':_

& returns true if both args are true

/ modifies & to apply "over" a list, like a fold in functional languages

> greater than

': modifies > to apply "each-prior", so returns a vector of booleans stating which elements are greater than their predecessor

_ makes it argument lower case

  _"puzZ"
"puzz"
  >':_"puzZ"
1110b
  &/>':_"puzZ"
0b

(0b means boolean false)

q (13 bytes)

all(>':)lower

q is just syntactic sugar on k. all is defined as &/, and lower is _

Source Link
mollmerx
  • 249
  • 1
  • 3

k (6 bytes)

&/>':_

q version (13 bytes)

all(>':)lower