欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Elm
来自开放百科 - 灰狐
(版本间的差异)
小 (→简介) |
小 (→指南) |
||
第29行: | 第29行: | ||
> round 3.14159 | > round 3.14159 | ||
3 : Int | 3 : Int | ||
+ | > greet name = | ||
+ | | "Hello " ++ name ++ "!" | ||
+ | | | ||
+ | <function> : String -> String | ||
+ | > greet "Huihoo" | ||
+ | "Hello Huihoo!" : String | ||
==软件包== | ==软件包== |
2022年2月10日 (四) 13:13的版本
Elm
目录 |
简介
Elm: Functional Frontend
Elm is a functional language that compiles to JavaScript.
功能
指南
$ curl -L -o elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz $ chmod +x elm $ sudo mv elm /usr/local/bin/ $ elm --help $ elm repl ---- Elm 0.19.1 ---------------------------------------------------------------- Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl> ------------------------------------------------------------------------------- > [ "Haskell", "Elm" ] ["Haskell","Elm"] : List String > [ 1.0, 2.1, 4.5, 43.1 ] [1,2.1,4.5,43.1] : List Float > String.length <function> : String -> Int > "hello" "hello" : String > not True False : Bool > round 3.14159 3 : Int > greet name = | "Hello " ++ name ++ "!" | <function> : String -> String > greet "Huihoo" "Hello Huihoo!" : String
软件包
项目
- Elm GitHub Topics
- Built with Elm
- All Elm Games
- RealWorld Elm SPA Example
- Elm Analyse
- Elm Review
- Kite An interactive visualization tool for graph theory
Inspired by Elm
- elchemy Write Elixir code using statically-typed Elm-like syntax (compatible with Elm tooling)
- Fabulous F# Functional App Development, using declarative dynamic UI
- Elmish Elm-like abstractions for F# applications.
用户服务商
图集
链接
分享您的观点