Here's a way of doing Advent 1 in Grade.

Find all the first kind. Count them. Do the same with the second. Then
subtract.  Discuss a possible meaning when "It can't be done"

s=: 13 :'(?y#2){''()'''
   [S=:s 10
)()))))))(
   f=: 13 :'(+/''(''=y)-+/'')''=y'
   f S
_6
   
Linda
-----Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill lam
Sent: Wednesday, December 2, 2015 7:13 PM
To: Programming forum
Subject: Re: [Jprogramming] 'Tis the Season...

  You can also change the default display to add extra parenthesis for
clarity.

9!:3[5 6

   # - +: @ (+/) @: =&')'
# - +:@(+/)@:=&')'
# - (((+:@(+/))@:=)&')')

   # - +: @ +/ @: =&')'
# - +:@+/@:=&')'
# - ((((+:@+)/)@:=)&')')

  +/%#
+/ % #
(+/) % #
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to