|
|
|
codepad
|
|
|
|
Saved pastes by sah:
def let(*a)
yield(*a)
end
let(Proc.new { |cc| puts ""; print "@"; cc }[callcc { |cc| cc }],
|
| view (8 lines, 361 lines of output) |
Proc.new { |yin, yang| yin[yang] }[
Proc.new { |cc| puts ""; print "@"; cc }[callcc { |cc| cc }],
Proc.new { |cc| print "*"; cc }[callcc { |cc| cc }]]
|
| view (3 lines, 361 lines of output) |
# -*- coding: utf-8 -*-
import codecs
import sys
sys.stdin = codecs.getreader('utf-8')(sys.stdin)
|
| view (8 lines, 1 line of output) |
# Two new keywords -- "doing" introduces a single unnamed block
# as a parameter to a function after the normal parameters.
# "where" can be used multiple times to introduce unlimited
# blocks via named parameters.
|
| view (33 lines) |
# -*- coding: utf-8 -*-
import codecs
import sys
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
|
| view (7 lines, 1 line of output) |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FunctionalDependencies
#-}
import Prelude hiding (($))
import qualified Prelude as P
|
| view (20 lines, 1 line of output) |
# -*- coding: utf-8 -*-
import codecs
import sys
sys.stdin = codecs.getreader('utf-8')(sys.stdin)
|
| view (8 lines, 1 line of output) |