-
Notifications
You must be signed in to change notification settings - Fork 4
Quick Start
Jayson Harshbarger edited this page Apr 16, 2016
·
8 revisions
F♭ is an experiment. Currently, it can be only be used by cloning the github repo.
git clone https://github.com/Hypercubed/f-flat_node.git
cd f-flat_node
npm install
npm start
f♭> 1
[ 1 ]
f♭> 2 3
[ 1 2 3 ]
f♭> swap
[ 1 3 2 ]
f♭> drop
[ 1 3 ]
f♭> dup
[ 1 3 3 ]
f♭> clr
[ ]
** In the following examples it is assumed the stack is clear **
f♭> 1 1 +
[ 2 ]
f♭> 2 dup *
[ 4 ]
f♭> -2 sqrt
[ 0+1.4142135623730950488i ]
f♭> "Hello" println
Hello
[ ]
f♭> 1 1 +
[ 2 ]
f♭> 2 =
[ true ]
f♭> "One plus one is two"
[ true 'One plus one is two' ]
f♭> 'One plus one is not two'
[ true 'One plus one is two' 'One plus one is not two' ]
f♭> choose
[ 'One plus one is two' ]
f♭> [ 20 30 40 ]
[ [ 20 30 40 ] ]
f♭> length
[ 3 ]
f♭> { hello: "a greeting" }
[ { hello: 'a greeting' } ]
f♭> { goodbye: "a parting" }
[ { hello: 'a greeting' } { goodbye: 'a parting' } ]
f♭> <<
[ { hello: 'a greeting' goodbye: 'a parting' } ]
f♭> @hello
[ 'a greeting' ]
f♭> "foo"
[ 'foo' ]
f♭> "bar"
[ 'foo' 'bar' ]
f♭> +
[ 'foobar' ]
f♭> 0 @
[ 'f' ]
f♭> "this is a test"
[ 'this is a test' ]
f♭> " "
[ 'this is a test' ' ' ]
f♭> /
[ [ 'this' 'is' 'a' 'test' ] ]
f♭> "this is a test"
[ 'this is a test' ]
f♭> 2 10 slice
[ 'is is a ' ]
- Introduction
- Language
- Words
- Internal
- Definitions
- Examples