diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-01 22:50:55 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-01 22:50:55 -0500 |
| commit | 9528bb145193159fa3e697da642e32a0877af5fb (patch) | |
| tree | 3375b4524d7c845ec33c7636fb7697ce3c1d6a42 /python/mal_types.py | |
| parent | 950e3c765e30648de34cfc4f65fffdce06f0727f (diff) | |
| download | mal-9528bb145193159fa3e697da642e32a0877af5fb.tar.gz mal-9528bb145193159fa3e697da642e32a0877af5fb.zip | |
All: pass stepA tests, in particular with correct conj behavior.
Diffstat (limited to 'python/mal_types.py')
| -rw-r--r-- | python/mal_types.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/mal_types.py b/python/mal_types.py index fa0a11e..401a03b 100644 --- a/python/mal_types.py +++ b/python/mal_types.py @@ -200,7 +200,10 @@ def concat(*lsts): return List(chain(*lsts)) # retains metadata def conj(lst, *args): - new_lst = List(lst + list(args)) + if list_Q(lst): + new_lst = List(list(reversed(list(args))) + lst) + else: + new_lst = Vector(lst + list(args)) if hasattr(lst, "__meta__"): new_lst.__meta__ = lst.__meta__ return new_lst |
