Re: [Factor-talk] Constraints on sequence functions

2013-06-04 Thread Doug Coleman
How about [ sum 100 = ] filter On Jun 4, 2013 9:57 PM, "graham telfer" wrote: > > Maybe happiness! Perhaps the math.combinatorics vocabulary has what I need. > > Sent from my iPad > > On 5 Jun 2013, at 12:45, "graham telfer" wrote: > > > I am trying to define a word; bagof which will collect subs

Re: [Factor-talk] Constraints on sequence functions

2013-06-04 Thread graham telfer
Maybe happiness! Perhaps the math.combinatorics vocabulary has what I need. Sent from my iPad On 5 Jun 2013, at 12:45, "graham telfer" wrote: > I am trying to define a word; bagof which will collect subsequences of values > that satisfy some constraints. > > : bagof ( seq -- set-of-sub-seque

[Factor-talk] Constraints on sequence functions

2013-06-04 Thread graham telfer
I am trying to define a word; bagof which will collect subsequences of values that satisfy some constraints. : bagof ( seq -- set-of-sub-sequences ) constraints-to-satisfy collect-the-sub-sequences ; Constraints might be anything but for example at the moment I want to collect the bag of i