Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Map-range/Amazing-Hopper/map-range-1.hopper
Normal file
6
Task/Map-range/Amazing-Hopper/map-range-1.hopper
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
double inc = (nHasta - nDesde) / ( nTotal - 1);
|
||||
lista[0] = nDesde;
|
||||
lista[nTotal] = nHasta;
|
||||
for( n=1; n<nTotal; n++){
|
||||
lista[n] = lista[n-1] + inc;
|
||||
}
|
||||
2
Task/Map-range/Amazing-Hopper/map-range-2.hopper
Normal file
2
Task/Map-range/Amazing-Hopper/map-range-2.hopper
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#defn Seqspaced(__X__,__Y__,__Z__,_V_) #ATOM#CMPLX;#ATOM#CMPLX;#ATOM#CMPLX;keep;lthan(1);\
|
||||
do{{"Seqspaced: num elements < 1"}throw(2301)},seqsp(_V_)
|
||||
3
Task/Map-range/Amazing-Hopper/map-range-3.hopper
Normal file
3
Task/Map-range/Amazing-Hopper/map-range-3.hopper
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#defn Toksep(__X__) #ATOM#CMPLX;toksep;
|
||||
#defn Cat(_X_,*) #ATOM#CMPLX;#GENCODE $$$*$$$ #ATCMLIST;cat; #ENDGEN
|
||||
#defn Justleft(_X_,_V_) {" "};#ATOM#CMPLX;#ATOM#CMPLX;padright;
|
||||
8
Task/Map-range/Amazing-Hopper/map-range-4.hopper
Normal file
8
Task/Map-range/Amazing-Hopper/map-range-4.hopper
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include <jambo.h>
|
||||
Main
|
||||
v=0,w=0
|
||||
Seqspaced(-1,0,11,w) // [-1,0}->[0-10]=11 números
|
||||
Seqspaced(0,10,11,v)
|
||||
Toksep( "\n" )
|
||||
Cat( Justright(5,Str(v))," => ",Justright(5,Str(w))), Prnl
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue