Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

raku fib

# lazy infinite sequence that contains fibonacci numbers
# * consumes one variable and so * + * the next term would eval to 0 + 1, afterwards consuming the next top 2. 
# [^100] indexes the list from 0 to 99 and will grab those indices.
# >>. is a map operator on the list and using the function say to print them
# beware >> may not always work in correct order if the function has side effects, you can always use @A.map(*.say) or .say for @A

(0, 1, * + * ... *)[^100]>>.say
Comment

PREVIOUS NEXT
Code Example
Python :: pie plot in python 
Python :: 3d array into 2d array python 
Python :: python ordered dict to dict 
Python :: python split string to sentences 
Python :: if name == main 
Python :: get last n in list python 
Python :: tkinter 
Python :: loop through words in a string python 
Python :: python numpy matrix to list 
Python :: variable string in string python 
Python :: disbale tkinter textbox 
Python :: Python get all keys from nested dictionary 
Python :: python combine two lists into matrix 
Python :: sum with conditional python 
Python :: socketserver python 
Python :: pandas -inf and inf to 0 
Python :: how append a directory based on current directory python 
Python :: extract name of file from path python 
Python :: python list all but first 
Python :: pandas head sort by colun name 
Python :: python split input to list 
Python :: python color print 
Python :: mode with group by in python 
Python :: to see version matplotlib 
Python :: Find column whose name contains a specific string 
Python :: add to a list python 
Python :: list files in http directory python 
Python :: what is a slug 
Python :: python int16 
Python :: how to find the transpose of a matrix in python 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =