Search
 
SCRIPT & CODE EXAMPLE
 

R

R (R 3.5.2) sample

f <- file("stdin")
open(f)
 
while(length(n <- as.integer(readLines(f,n=1))) > 0) {
	if (n == 42) {
		break;
	}
	write(n, stdout())
}
Comment

PREVIOUS NEXT
Code Example
R :: geom_abline vertical line 
R :: save data frames in a loop r 
R :: R gap between date add missing value 
R :: r studio 
R :: get string without ending in R 
R :: grep string that ends with R 
R :: Iteration in R 
Rust :: how to exit the program rust 
Rust :: read file in rusr 
Rust :: how to create a string of n characters rust 
Rust :: how to create a window in rust lang 
Rust :: rust setup in vim 
Rust :: rust write to file 
Rust :: rust enum to string 
Rust :: Split text on several separators 
Rust :: how to make map in rust language 
Rust :: armanriazi•rust•syntax•names 
Rust :: rust vec of generics types 
Rust :: Read a floating point number from stdin 
Rust :: declare an array with signle value Rust 
Rust :: rust sort vec of f64 
Rust :: armanriazi•rust•binding•match 
Rust :: armanriazi•rust•trait•where 
Lua :: Get number of values in a table lua 
Lua :: roblox __index and __newindex 
Lua :: roblox studio Teleport service not working 
Lua :: for i = 1 to n roblox 
Lua :: lua get time 
Lua :: awesome wm tasklist disabled icon 
Lua :: How to Register a command in Lua 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =