gist-id: cd76ef36afbe36e7a65f
- یه برگه تقلب خوب برای هسکل
- [http://www.seas.upenn.edu/~cis194/spring13/](Introduction to Haskell-Spring 2013)
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body dir="rtl"> | |
| <p> <br> | |
| آبِق:<br> |
| include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go |
| { | |
| meta: { | |
| code: 200 | |
| } | |
| notifications: [ | |
| { | |
| type: "notificationTray" | |
| item: { | |
| unreadCount: 2 | |
| } |
| \documentclass{letter} | |
| \usepackage{xepersian} | |
| \settextfont{XB Zar} | |
| \signature{میلاد خواجوی} | |
| \address{اصفهان \\ خیابان ... \\ خیابان ... \\ پلاک .. \\ کد پستی ...} | |
| \begin{document} | |
| name := "Statics" | |
| version := "0.1" | |
| scalaVersion := "2.11.6" | |
| libraryDependencies += "org.apache.commons" % "commons-math3" % "3.5" |
gist-id: cd76ef36afbe36e7a65f
| object Simulation { | |
| def main(args: Array[String]): Unit= { | |
| trait A { | |
| var distance: Int = _ | |
| def action = { | |
| distance = distance + 5 | |
| } | |
| } |
| > {-# LANGUAGE ViewPatterns #-} | |
| > import qualified Data.Set as Set | |
| > import qualified Data.Map as Map | |
| > import qualified Data.Sequence ((><), (<|), (|>), fromList, length) | |
| > data List a = Empty | Cons a (List a) deriving Show | |
| > l1 = Cons 1 (Cons 2 (Empty)) | |
| Function Application | |
| ==================== |