KGTACVDO5GCOMCIUOLLW7RRVC5INTQQUHRSWM7RDKWF3M2BNU7MAC
RFICEA7RBQHP5Y47NBRFAVAMYVETEORRMSSBUS3NA7CYLLLKIRIAC
RSWICK33ATVCDH7JCPWPMS6H2W3EXGM2MYE4ESSA7GITWEA4M2KQC
ZVLFS7DOBMSEN6Z6TSZHO5RAGEI2ECMAUQVXHGB4EFJA4TYWZUFAC
CW5W3AN5CFPPHAVPMEJYBTYSPUTRMRZDAOWM34WWBPIJUZV7HBLQC
(defn partition-on-focused [focused-id node-a node-b]
(defn partition-on-focused [focused-id {"firstChild" node-a "secondChild" node-b}]
{"firstChild" a "secondChild" b} (let [[focused not-focused] (partition-on-focused focused-id a b)]
{"firstChild" a "secondChild" b}
(let [[focused not-focused] (partition-on-focused focused-id a b)]
_ (let [[focused not-focused] (partition-on-focused focused-id node)]
nil (print "Não há mais nós para esconder")
nil
(print "Não há mais nós para esconder")
{"firstChild" :null "secondChild" :null} (toggle-hidden unhidden)
{"firstChild" :null "secondChild" :null}
(toggle-hidden unhidden)
{"firstChild" node-a "secondChild" node-b} (let [[_ not-focused] (partition-on-focused focused-id node-a node-b)]
{"firstChild" node-a "secondChild" node-b}
(let [[_ not-focused] (partition-on-focused focused-id node-a node-b)]
_ (let [[_ not-focused] (partition-on-focused focused-id unhidden)]