forked from MartinThoma/LaTeX-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a39159
commit b74de7b
Showing
8 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
org 100h | ||
start: | ||
mov ax, 5522h | ||
mov cx, 1234h | ||
xchg cx,ax | ||
mov al, 0 | ||
mov ah,4Ch | ||
int 21h |
38 changes: 38 additions & 0 deletions
38
documents/Programmierparadigmen/scripts/haskell/standard-definitions.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
map :: (a -> b) -> [a] -> [b] | ||
map f [] = [] | ||
map f (x:xs) = f x : map f xs | ||
---------- | ||
|
||
zipWith :: (a->b->c) -> [a]->[b]->[c] | ||
zipWith z (a:as) (b:bs) | ||
= z a b : zipWith z as bs | ||
zipWith _ _ _ = [] | ||
---------- | ||
|
||
zip :: [a] -> [b] -> [(a,b)] | ||
zip = zipWith (,) | ||
---------- | ||
|
||
unzip :: [(a,b)] -> ([a],[b]) | ||
unzip = foldr (\(a,b) ~(as,bs) -> (a:as,b:bs)) ([],[]) | ||
---------- | ||
|
||
foldl :: (a -> b -> a) -> a -> [b] -> a | ||
foldl f z [] = z | ||
foldl f z (x:xs) = foldl f (f z x) xs | ||
---------- | ||
|
||
foldr :: (a -> b -> b) -> b -> [a] -> b | ||
foldr f z [] = z | ||
foldr f z (x:xs) = f x (foldr f z xs) | ||
---------- | ||
|
||
take :: Int -> [a] -> [a] | ||
take n _ | n <= 0 = [] | ||
take _ [] = [] | ||
take n (x:xs) = x : take (n-1) xs | ||
---------- | ||
|
||
splitAt :: Int -> [a] -> ([a],[a]) | ||
splitAt n xs = (take n xs, drop n xs) | ||
---------- |
3 changes: 3 additions & 0 deletions
3
documents/Programmierparadigmen/scripts/scala/extended-for.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
val list = List("USA", "Russia", "Germany") | ||
for(country <- list) | ||
println(country) |