F♭ (pronounced F-flat) is a toy language.
type
a -> str
retruns the type of an item
number
a -> x
converts to a number
complex
a -> z
converts to a complex number
string
converts to a string
itoa
x -> str
returns a string created from UTF-16 character code
atoi
str -> x
returns an integer between 0 and 65535 representing the UTF-16 code of the first character of a string
atob
str -> str
decodes a string of data which has been encoded using base-64 encoding
btoa
str -> str
creates a base-64 encoded ASCII string from a String
hash
a -> x
creates a numeric hash from a String
hex-hash
a -> str
creates a hexidecimal hash from a String
base
x -> str
Convert an integer to a string in the given base
boolean
a -> bool
converts a value to a boolean
:
(key)a -> a:
converts a string to a key
#
(symbol)a -> #a
converts a string to a unique symbol
array
a -> [A]
converts a value to an array
of
a b -> c
converts the rhs value to the type of the lhs
is?
a b -> bool
returns true if to values are the same value
nothing?
a -> bool
returns true if the value is null or undefined
date
a -> date
convert a value to a date/time
now
-> date
returns the current date/time
clock
-> x
returns a high resoltion time elapsed
regexp
a -> regexp
convert string to regular expresion