kopia lustrzana https://github.com/backface/turtlestitch
1 wiersz
3.0 KiB
XML
1 wiersz
3.0 KiB
XML
<blocks app="Snap! 5.0, http://snap.berkeley.edu" version="1"><block-definition s="$flash map %'fn' over %'data'" type="reporter" category="lists"><header></header><code></code><translations>de:$flash wende _ an auf _
ca:$flash mapeja _ sobre _
es:$flash mapear _ sobre _
fr:$flash appliquer _ à _
</translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>fn</l><l>data</l><l>proc</l></list><l>return proc.reportAtomicMap(fn, data);</l></block><list><block var="fn"/><block var="data"/></list></block></block></script></block-definition><block-definition s="$flash keep items such that %'test' from %'data'" type="reporter" category="lists"><header></header><code></code><translations>de:$flash behalte Elemente, die _ aus _
ca:$flash manté els elements on _ de _
es:$flash mantener los elementos donde _ de _
fr:$flash garder les items tels que _ de _
</translations><inputs><input type="%predRing"></input><input type="%l"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>fn</l><l>data</l><l>proc</l></list><l>return proc.reportAtomicKeep(fn, data);</l></block><list><block var="test"/><block var="data"/></list></block></block></script></block-definition><block-definition s="$flash combine with %'fn' items of %'data'" type="reporter" category="lists"><header></header><code></code><translations>de:$flash kombiniere mit _ die Elemente von _
ca:$flash combina amb _ els elements de _
es:$flash combinar con _ los elementos de _
fr:$flash combine avec _ les items de _
</translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>fn</l><l>data</l><l>proc</l></list><l>return proc.reportAtomicCombine(fn, data);</l></block><list><block var="fn"/><block var="data"/></list></block></block></script></block-definition><block-definition s="$flash sort %'data' ordering with %'fn'" type="reporter" category="lists"><header></header><code></code><translations>de:$flash sortiere _ nach _
</translations><inputs><input type="%l"></input><input type="%predRing"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>data</l><l>fn</l><l>proc</l></list><l>return proc.reportAtomicSort(data, fn);</l></block><list><block var="data"/><block var="fn"/></list></block></block></script></block-definition><block-definition s="$flash reverse %'list'" type="reporter" category="lists"><header></header><code></code><translations>de:$flash umgekehrt _
</translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>list</l></list><l>return new List(list.asArray().slice().reverse());</l></block><list><block var="list"/></list></block></block></script></block-definition></blocks> |