You can use the colon like this foo=:- : - foo 3 _3
5 foo 3 2 In a way it is the same as foo=:- foo 3 _3 5 foo 3 2 To show that the colon makes a difference foo=:- : + foo 3 _3 5 foo 3 8 2010/8/17 Graham Parkhouse <graham.parkho...@ntlworld.com> > Both JfC and LJ mention a 'solo colon' separating the monadic from the > dyadic cases of an explicit verb. Unaware of this, I got caught out > recently > by adding a comment after the colon. J doesn't like it! > > foo=: 3 : 0 > -y > : > x-y > ) > foo 3 > _3 > 5 foo 3 > 2 > > 0K! But ... > > foo=: 3 : 0 > -y > : NB. No comments allowed on this line! > x-y > ) > > foo 3 > |value error: x > | x-y > 5 foo 3 > |domain error: foo > | 5 foo 3 > > It appears that the colon should be oh so solo! > > Regards > > Graham > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: gos...@gmail.com gsm: +3546985532 sími: +3544781286 http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm