Stabel

Check-in [4d39da526f]
Login
Overview
Comment:Add dip function to stdlib.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4d39da526fe164a904b3e31acd3d13bb9c7e0388732faf89b578f9b10df3004f
User & Date: robin.hansen on 2021-08-01 08:54:00
Other Links: manifest | tags
Context
2021-08-01
09:03
Added tests to make sure compiler catches bad generic variables in type definitions. check-in: 62e904802b user: robin.hansen tags: trunk
08:54
Add dip function to stdlib. check-in: 4d39da526f user: robin.hansen tags: trunk
04:15
Remove all Debug.todo and Debug.log statements from the project. This has required large re-factorin... check-in: 25a43aff01 user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified stdlib/src/core.stbl from [f0362b91dc] to [13ee2f2464].

44
45
46
47
48
49
50




51
52
53
54
55
56
57

def: if
type: a... Bool [ a... -- b... ] [ a... -- b... ] -- b...
: select !

# stack manipulation





def: over
type: a b -- a b a
: swap dup rotate

def: drop2
type: a b c -- a
: drop drop







>
>
>
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

def: if
type: a... Bool [ a... -- b... ] [ a... -- b... ] -- b...
: select !

# stack manipulation

def: dip
type: a b [ a -- c ] -- c b
: swap rotate ! swap

def: over
type: a b -- a b a
: swap dup rotate

def: drop2
type: a b c -- a
: drop drop