5
5
thargas

@lemmy.world

thargas 2 points 3 years ago

that's got it! thanks muchly

path: 0 1801317 1816836, hotness: undefined, score: 2, children: 0
thargas 2 points 9 months ago

Yes. That works great! Thanks again!

Since I'm wanting to be able to use this multiple times, for various lists, I end up with:

AdjectiveNoun(Adj, Noun)=>
  let combo=[];
  for(const a of Adj.selectAll) {
    for(const n of Noun.selectAll) {
      combo.push([a,n].join(' '));
    };
  };
  return [joinlists(combo).consumableList];
path: 0 21750384 21763287 21764028 21765324 21776161, hotness: undefined, score: 2, children: 0
thargas 1 point 9 months ago

Thanks @Almaumbria.

Unfortunately, it's not quite what I wanted. I'm wanting the effect of a consumable list where the elements are all the combinations of Adjective+Noun. I think I'll have to figure out how to iterate through each of Adjective and Noun and construct a new list with all the combinations and stash that. I've not written an function like Thing() before, so I'll have to think about that.

path: 0 21750384 21763287, hotness: undefined, score: 1, children: 3
thargas 1 point 9 months ago

That's looking very promising! I can't try it right now, but I think it'll do, once I parameterize the function to allow passing in the two lists to be combined.

Thanks muchly!

path: 0 21750384 21763287 21764028 21765324, hotness: undefined, score: 1, children: 1
thargas 0 points a year ago

People (myself included) are lazy and usually won't bother to make a change unless they have a specific reason. If the default were private then we wouldn't have the huge compendium of interesting pages to look through that we do.

Please keep the default public.

path: 0 18272818, hotness: undefined, score: 0, children: 1

thanks for using Leebra!

go to feed...