Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

h+

h+: you thought i was done making esolangs, you were wrong

commands

literals and variables

  • 123 Push the number 123.
  • \abc Push the string 'abc'.
  • abc: Pop and store in the variale 'abc'.
  • abc Push value stored in 'abc'.
  • Abc Execute value stored in 'abc'.

stack manipulation

  • -::.: Planet notation: keep-keep-drop-keep.
	1 2 3 4 -::.:
1 2 4
  • ! Eval.
	10 20 {+} !
30
  • !:: Planet eval: keep-keep, eval, push back kept values.
	1 2 3 4 {-} !::
-1 3 4
  • !! Foreach.
	1 2 3 4 5 5[]
[ 1 2 3 4 5 ]
	{10*} !!
[ 10 20 30 40 50 ]
  • : Flip.
	10 20 :
20 10
  • ; Pop.
	10 20 ;
10
  • ? Ternary operator.
	0 10 20 ?
20
	1 10 20 ?
10
  • . Duplicate.
	10 .
10 10
  • , Over.
	10 20 ,
10 20 10
  • >> R rot.
	10 20 30 >>
30 10 20
  • << L rot.
	10 20 30 <<
20 30 10
  • >>> R rot with copy.
	10 20 30 >>>
30 10 20 30
  • <<< L rot with copy.
	10 20 30 <<<
10 20 30 10
  • [] Pack.
	10 20 30 3[]
[ 10 20 30 ]
  • .. Unpack.
	10 20 30 3[]
[ 10 20 30 ]
	..
10 20 30
  • { Open list.
  • } Finish list.
	{ + - 10 a b c}
[ + - 10 a b c ]
  • \ Escape.
	\ +
+
  • $= Save.
  • $ Load.
	10 $=

	$
10
  • # Call system function.
	10 \output#
10

data manipulation

  • || Absolute value.
	0 10 -
-10
	||
10
  • <> Range.
	10 <>
[ 0 1 2 3 4 5 6 7 8 9 ]
  • | OR.
	0 1 |
1
  • & AND.
	0 1 &
0
  • ^ NOT.
	1 ^
0
  • ^^ XOR.
	0 1 ^^
1
  • + Add.
	5 10 +
15
  • - Sub.
	5 10 -
-5
  • * Mul.
	5 10 *
50
  • % Div.
	5 10 %
0.5
  • < Less than.
	5 10 <
1
  • > Greater than.
	5 10 >
0
  • = Equal.
	5 10 =
0
  • @ Index.
	{a b c} 1 @
b
  • @= Index assign.
	{a b c} 1 \z @=
[ a z c ]

About

plusing my Hs since 1999

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages