Open dglazkov opened 6 months ago
For now
Spread
Rest
Pick
(may converge with Rest
)Omit
push
pop
splice
concat
I'd like a merge
for objects, equivalent to {...a, ...b}
This is the rough list I'm going by at the moment https://github.com/ExaDev-io/breadboard/blob/1184-implement-a-kit-that-contains-commo/packages/utility-kit/README.md
@dglazkov @Mearman I wrote Kit.wrap
exactly for this case (existing system APIs). Can we try and exercise it?
I think there might be some issues specifically there is no "describer" yet.
Ah I completely forgot about 'Wrap'. I shall have a play
Ok, some I'm having to reshape to have sensible input and output ports. @PaulKinlan is there a nice way to wrap functions one-by-one?
Yeah - you should be able to just do it.
const MathKit = KitBuilder.wrap({ url: "test" }, { random: Math.random });
Sorry I missed out, then including it alongside other nodes in an existing kit. Some of them require a bit of tinkering.
Yeah - you should be able to just do it.
const MathKit = KitBuilder.wrap({ url: "test" }, { random: Math.random });
I also forgot about the .wrap
!!!
would be very interesting to compare this to the node defining machinery that @aomarks built.
This ^ and my indecision about what to include in code nodes vs board mechanics vs kits, as well what I was thinking about regarding the "board signatures" makes me wonder if there is a better way of defining "logical nodes"/boards
makes me wonder if there is a better way of defining "logical nodes"/boards
now you have to tell me more about that 😆
well initially it's spawned from wondering about passing a board that has a certain signature but I think it could extend to the underlying logic of the node. If you remember, ages ago I was wondering about ASTs for encoding board logic. Perhaps a BGL way of encoding an AST...?
Things like spread/rest/etc. For manipulating lists, objects, and all other common needs that tend to pop up when building graphs.