mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-17 12:31:04 +01:00
Compare commits
5 Commits
revert/exi
...
feature/co
| Author | SHA1 | Date | |
|---|---|---|---|
| 1379d62c9e | |||
| 2fb1c7e7ad | |||
| 8c6095ea7a | |||
| 0f2ca114a4 | |||
| e78e4f84f4 |
9
util.go
9
util.go
@@ -33,6 +33,15 @@ func contains(s []string, e string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func exists(m map[string]interface{}, item string) bool {
|
||||||
|
// FIXME: try to use this for all cases
|
||||||
|
if _, ok := m[item]; ok {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
func const2num(name string) float64 {
|
func const2num(name string) float64 {
|
||||||
switch name {
|
switch name {
|
||||||
case "Pi":
|
case "Pi":
|
||||||
|
|||||||
Reference in New Issue
Block a user