Top "Proc" questions

In Ruby, Proc objects are blocks of code that have been bound to a set of local variables.

/proc kcore file is huge

After experiencing a DDOS attack, somehow /proc/kcore is very huge, I use a small php class to check the …

proc
When to use lambda, when to use Proc.new?

In Ruby 1.8, there are subtle differences between proc/lambda on the one hand, and Proc.new on the other. What …

ruby lambda proc
SAS distinct in proc sql vs proc sort nodupkey

I have following dataset: data work.dataset; input a b c; datalines; 27 93 71 27 93 72 46 68 75 55 55 33 46 68 68 34 34 32 45 67 88 56 75 22 34 34 32 ; run; I want to select all distinct records …

sql sorting sas distinct proc
Why do we need fibers

For Fibers we have got classic example: generating of Fibonacci numbers fib = Fiber.new do x, y = 0, 1 loop do Fiber.…

ruby lambda closures fibers proc
What does to_proc method mean?

I am learning rails and following this thread. I am stuck with the to_proc method. I consider symbols only …

ruby syntax block symbols proc
Exporting multiple sas datasets into multiple excel sheets with macro?

I am looking if there is a macro that would export multiple datasets into separate excel worksheets within a workbook. …

excel sas export proc
Dynamic PL/SQL date parameter with time value retained

It might be a silly problem but I cant find a solution with "DATE" type passed in a PL/SQL …

oracle dynamic plsql proc
How to store ruby code blocks

I want to store a "code block" in a variable to be reused, something like: block = do |test| puts test …

ruby block proc
Using /proc/[pid]/pagemap

I am aware that there is a little information regarding the pagemap file here. But nobody seems to indicate how …

linux process proc
Return statements inside procs, lambdas, and blocks

I am having a lot of trouble understanding how return works in blocks, procs, and lambdas. For instance, in the …

ruby lambda return block proc