-: y (Halve)
Divides the value of y by 2.
The following is an animation for the Halve monadic verb that might be useful to those new to J
Current configuration does not allow embedding of the file http://www.youtube.com/v/8s3rZLvixFI because of its mimetype application/x-shockwave-flash.: http://www.youtube.com/v/8s3rZLvixFI
Has advantages in tacit definitions over (expression) % 2.
x -: y (Match)
Returns Boolean value 1 iff x is equivalent to y.
'no' -: |. 'on' 1 'no' -: 'yes' 0
Matching strings of varying length.
reply=: 'yes' reply = 'yes' 1 1 1 reply = 'no' |length error | reply ='no' reply -: 'yes' 1 reply -: 'no' 0