Guest User

Untitled

a guest
Dec 12th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. `c`<-function(...){list(...)[[-1]];}->>`c`;`[`=0;`]`=10;c(c,c)(c,c)(c,invisible)(`[`[]:`]`[])[];
  2.  
  3. [1] 0 1 2 3 4 5 6 7 8 9 10
  4.  
  5. {.=0;for(`~1` in c(1,2,3,4,5,6,7,8,9,10)){.=c(., `~1`,recursive=F)};print(unname(.[drop=T]));rm(.)}
  6. [1] 0 1 2 3 4 5 6 7 8 9 10
  7.  
  8. unlist(lapply(LETTERS[-(11:26)],function(x) as.integer(charToRaw(x))-as.integer(charToRaw('A'))+1L))
  9. #[1] 1 2 3 4 5 6 7 8 9 10
  10.  
  11. I(cumsum(Reduce("sum", replicate(paste0(as.integer(T),as.integer(T)), T), accumulate=1-F) - T >0))
  12.  
  13. assign("a",1:10); b<<-paste(a,collapse=";"); unlist(lapply(strsplit(b,";")[[1]],function(c)c[[1]]))
Add Comment
Please, Sign In to add comment