Brian, it is possible for a set to be an element of another set. set <'' with
no space between the quotes is the set whose only element is '' , the empty
set. (Again no space between the quotes). This is analogous to set <2 being
the set whose only element is the number 2 . --Kip
Sent fro
Kip,
Yes, I agree with what you get. I am a little unsure of the meaning of `set
<''` but I am guessing it means a set of a blank or non character, which is
different from Empty, the empty set.
And so I suppose it might be worthwhile to make the point that all sets in
your system, except the empt
I get
set NB. Argument y should be a box or list of boxes
[: /:~ ~.
set 0;1
+-+-+
|0|1|
+-+-+
set <0
+-+
|0|
+-+
set <'' NB. no space between quotes
++
||
++
set <' ' NB. space between quotes
+-+
| |
+-+
Also
'' -: set '' NB. No space between quotes in either pair of them
1
I realize I'm late to the party, but going back to the ordered vs unordered
question. I saw rudimentary implementation of a hash table in another
language that used a set for the keys and a vector for the values. It's
more like an associative array instead of a hash table I think.
Using R.E Boss's
i. 2 ^ [: # >) ([: < #)"1 >
> ps4
> [: set"0 ([: |: [: |. [: |: [: #: [: i. 2 ^ [: # >) ([: < #)"1 >
>
> Did you ever get the pdf file? I'm still trying to make the empty set be
> the same size as the set with a 1 in it.
>
> Linda
The difference I see as fundamental is on the Empty set.
Whereas in the previous proposal we got the following results.
$Empty
ps Empty
|length error: ps
| ps Empty
In the current proposal we get the following results.
$Empty
0
ps Empty
┌┐
││
└┘
In both proposals a difficult
Well, I'm going to give up the enclosing box for my sets. The displays are too
complicated.
Please try to "break" the revised proposal below. You can save it and do a
loadd.
Thanks. --Kip Murray
NB. SETS PROPOSAL
NB. INTRODUCTION
NB. A set is '' or a sorted list of boxes,
un...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km
Sent: Sunday, November 17, 2013 11:43 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Sets please help
Henry, thanks for your help.
4 is the expected level of a set whose eleme
Henry, thanks for your help.
4 is the expected level of a set whose elements are sets. Here's how it works:
1;2 NB. boxes contain proposed elements 1 and 2
+-+-+
|1|2|
+-+-+
set 1;2 NB. boxes containing elements are "fenced in"
+-+
|+-+-+|
||1|2||
|+-+-+|
+-+
(set 1;2); On Nov
It looks to me that ps adds an extra level of boxing. Check the result of
ps set ;:'a b'
to see if I'm wrong.
The verbs need to have appropriate ranks. I am not sure what they
should be but I will make my guesses:
sf"0 0"_ 0
sn"0 1 0
eo"_ 0 but this shows up a need for an eo that take
Will you try to "break" the following proposal before I post it on the J Wike?
Thanks,
-- Kip Murray
NB. J SETS PROPOSAL
NB. This ia a script you can copy and save, then load or loadd.
NB. INTRODUCTION
NB. Part of each set is its enclosing box. Like a Venn diagram set.
NB. A set is a box
11 matches
Mail list logo