Comments (9)
0.1.2 will let you pass a lazy-sec
from amazonica.
Am I doing something stupid here?
With a fresh clone of the repo and lein repl
I run these two commands:
(use 'amazonica.aws.autoscaling)
(create-launch-configuration :security-groups (seq ["hello" "world"]))
... and I still get that error.
from amazonica.
Try (lazy-seq) instead of (seq)
On Apr 2, 2014 8:04 AM, "Neil Prosser" [email protected] wrote:
Am I doing something stupid here?
With a fresh clone of the repo and lein repl I run these two commands:
(use 'amazonica.aws.autoscaling)(create-launch-configuration :security-groups (seq ["hello" "world"]))
... and I still get that error.
Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-39341442
.
from amazonica.
That worked but it still means users are going to have to consider adding vec
or lazy-seq
to every collection parameter they use with the library.
from amazonica.
I've created this issue to see what the algo.generic
auther makes of it. Hopefully help you avoid having to do anything beyond changing the version.
from amazonica.
You would only have to wrap a ChunkedSeq in a vec or lazy-seq call, or some other concrete collection type that doesn't implement an interface supported by algo.generic.
Calling seq on a vector is basically the only way I see to get a ChunkedSeq. (with-meta produces one too but that's not really applicable to most cases.)
Can you show your actual call to map
that's producing the ChunkedSeq?
In a repl you can see it's probably rare that you're going to be dealing with ChunkedSeqs
(class (map identity [1 2 3])) ;;clojure.lang.LazySeq
(class (map identity '(1 2 3))) ;;clojure.lang.LazySeq
(class (seq [1 2 3])) ;; clojure.lang.PersistentVector$ChunkedSeq
(class (lazy-seq [1 2 3])) ;;clojure.lang.LazySeq
from amazonica.
I see the issue you created on algo.generic. You could implement fmap for ISeq to handle this special case.
from amazonica.
from amazonica.
Sorry, I've worked out that it's not coming from map
. I'm an idiot. The ChunkedSeq
is coming from me doing (seq something-mapped)
so I get nil
in the case of an empty sequence (which is more convenient than having to check count
or similar). My map
examples are all giving back LazySeq
.
I'll probably be able to just use the original mapped sequence, rather than the one which has gone through the seq
.
However, now I see that you've done the work on algo.generic
. You sir, are a legend!
from amazonica.
Related Issues (20)
- acm namespace under certificatemanager.clj causes import to fail HOT 1
- SQS send-message with message-attributes HOT 3
- Update README.md Lambda Section
- Old dependencies have known vulnerabilities HOT 1
- How to get the uri of a file saved to aws using put-object?
- Unaccurate :arglists for #'amazonica.aws.simpleemail/send-email HOT 3
- Support for KCL 2 (enhanced fan out)
- How to get the progress in uploading to an s3 bucket? HOT 2
- Route53 list-hosted-zones in China HOT 1
- Details on "Could not determine best method to invoke for download using arguments"
- Kinesis checkpointing does not work correctly when leasing multiple shards
- Kinesis client workers do not gracefully shutdown
- How to start new Kinesis worker at InitialPositionInStream.LATEST? HOT 1
- s3 region error
- Very large transient libraries HOT 2
- get-shard-iterator with AT_TIMESTAMP not working HOT 1
- Kinesis worker doesn't use amazonica credentials mechanism HOT 2
- s3 example from the README throws Execution error (IllegalStateException)
- No release tags since 2015
- update to aws-java-sdk 1.12.638+ to resolve CVE-2024-21634) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazonica.